From 88f4777bbe4181a771f6143971c3af0bb578e96a Mon Sep 17 00:00:00 2001 From: rfelker Date: Sun, 24 Feb 2002 04:56:54 +0000 Subject: fixes bug in alban's new input handling code that caused the terminal state to get trashed and not restored on exit. hopefully this change won't interfere with the functionality of the new code; as far as i can tell it seems to work fine. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4834 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 60eb7ec511..71b64cfa22 100644 --- a/mplayer.c +++ b/mplayer.c @@ -752,10 +752,13 @@ current_module = NULL; play_next_file: -if(!use_stdin && !slave_mode){ - getch2_enable(); // prepare stdin for hotkeys... - inited_flags|=INITED_GETCH2; -} +// 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; +//} #ifdef HAVE_NEW_GUI if ( use_gui ) { -- cgit v1.2.3