Mercurial > mplayer.hg
changeset 1005:90682d6f84f5
terminal reset bug with gui fixed
author | pontscho |
---|---|
date | Mon, 04 Jun 2001 18:40:57 +0000 |
parents | 57972eb8127a |
children | d7c34da0b28f |
files | mplayer.c |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Mon Jun 04 18:23:10 2001 +0000 +++ b/mplayer.c Mon Jun 04 18:40:57 2001 +0000 @@ -337,7 +337,10 @@ if(how) printf("\nExiting... (%s)\n",how); if(verbose) printf("max framesize was %d bytes\n",max_framesize); // restore terminal: - getch2_disable(); + #ifdef HAVE_GUI + if ( nogui ) + #endif + getch2_disable(); video_out->uninit(); #ifdef USE_XMMP_AUDIO if(verbose) printf("XMM: closing audio driver...\n"); @@ -462,6 +465,8 @@ int osd_function=OSD_PLAY; int osd_last_pts=-303; +float a_frame=0; // Audio + float rel_seek_secs=0; #include "mixer.h" @@ -1384,7 +1389,6 @@ //float buffer_delay=0; float frame_correction=0; // A-V timestamp kulonbseg atlagolas int frame_corr_num=0; // -float a_frame=0; // Audio float v_frame=0; // Video float time_frame=0; // Timer float c_total=0; @@ -1407,10 +1411,17 @@ lirc_mp_setup(); #endif + #ifdef HAVE_GUI + if ( nogui ) + { + #endif #ifdef USE_TERMCAP load_termcap(NULL); // load key-codes #endif if(f) getch2_enable(); + #ifdef HAVE_GUI + } + #endif //========= Catch terminate signals: ================ // terminate requests: