mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4836 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f2178bed7
commit
e016ed4fc4
18
mplayer.c
18
mplayer.c
@ -756,13 +756,12 @@ current_module = NULL;
|
||||
|
||||
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 @@ if(force_fps){
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user