# HG changeset patch # User albeu # Date 1014552312 0 # Node ID 1f59d4d7355825898a80335214bc639fc3ad1aeb # Parent fdb92826250c168d73784084cb819286b831a20e Fix my mistake (forgot to remove a getch2_enable) but in the rigth way this time, otherwise you can't interrupt network connection and cache filling from the keyboard diff -r fdb92826250c -r 1f59d4d73558 mplayer.c --- a/mplayer.c Sun Feb 24 11:23:48 2002 +0000 +++ b/mplayer.c Sun Feb 24 12:05:12 2002 +0000 @@ -756,13 +756,12 @@ play_next_file: -// We can enable getch2 *either* here *or* on a per-file basis, but NOT both!!! -// Doing it both places causes the saved terminal state to get trashed!! -// Maybe this can be renabled at a later date if it's useful... -//if(!use_stdin && !slave_mode){ -// getch2_enable(); // prepare stdin for hotkeys... -// inited_flags|=INITED_GETCH2; -//} +// We must enable getch2 here to be able to interrupt network connection +// or cache filling +if(!use_stdin && !slave_mode){ + getch2_enable(); // prepare stdin for hotkeys... + inited_flags|=INITED_GETCH2; +} #ifdef HAVE_NEW_GUI if ( use_gui ) { @@ -1555,11 +1554,6 @@ mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_StartPlaying);fflush(stdout); -if(!use_stdin && !slave_mode){ - getch2_enable(); // prepare stdin for hotkeys... - inited_flags|=INITED_GETCH2; -} - InitTimer(); total_time_usage_start=GetTimer();