[MPlayer-dev-eng] No need to enable getch2 more then once
Andreas Hess
jaska at gmx.net
Tue Apr 16 23:56:34 CEST 2002
Hello!
When using mplayer with -gui my terminal is always broken after
finishing a video. It doesn't display new entered characters any
longer.
I think the problem is, that getch2 will be enabled a second time
after finishing the video. The same problem should occur when
playing multiple files.
The following fixes this problem (at least for me):
--- mplayer.c 16 Apr 2002 17:41:28 -0000 1.472
+++ mplayer.c 16 Apr 2002 21:29:59 -0000
@@ -760,7 +760,7 @@
// We must enable getch2 here to be able to interrupt network connection
// or cache filling
-if(!use_stdin && !slave_mode){
+if(!use_stdin && !slave_mode && !(inited_flags&INITED_GETCH2)){
getch2_enable(); // prepare stdin for hotkeys...
inited_flags|=INITED_GETCH2;
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"\n[[[init getch2]]]\n");
More information about the MPlayer-dev-eng
mailing list