mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
03ee5086e5
commit
88f4777bbe
11
mplayer.c
11
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 ) {
|
||||
|
|
Loading…
Reference in New Issue