changeset 4833:395844d9d5d6

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.
author rfelker
date Sun, 24 Feb 2002 04:56:54 +0000
parents 76491c4cb611
children fdb92826250c
files mplayer.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Feb 24 04:37:17 2002 +0000
+++ b/mplayer.c	Sun Feb 24 04:56:54 2002 +0000
@@ -752,10 +752,13 @@
 
 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 ) {