summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-31 22:58:41 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-31 22:58:41 +0000
commitb8ecae4ce6175fafae001182e8669d7e104bbdc0 (patch)
tree1266250993a2bd4f323ab917aa42cb30c2939a56 /mplayer.c
parent9a0ea39d8b7ba09673e8811e87ab09d0c13f0f33 (diff)
downloadmpv-b8ecae4ce6175fafae001182e8669d7e104bbdc0.tar.bz2
mpv-b8ecae4ce6175fafae001182e8669d7e104bbdc0.tar.xz
fixed interaction between commandlien and fileselector
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1818 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mplayer.c b/mplayer.c
index c53093ea32..4493f12ba2 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -581,13 +581,13 @@ play_next_file:
#ifdef HAVE_NEW_GUI
if ( use_gui ) {
- if(filename) strcpy( mplShMem->Filename,filename );
+ if(filename && !mplShMem->FilenameChanged) strcpy( mplShMem->Filename,filename );
// mplShMem->Playing= (gui_no_filename) ? 0 : 1;
while(mplShMem->Playing!=1){
usleep(20000);
EventHandling();
}
- if(gui_no_filename){
+ if(mplShMem->FilenameChanged){
filename=mplShMem->Filename;
}
}
@@ -1494,6 +1494,7 @@ if(auto_quality>0){
#endif
if(osd_function==OSD_PAUSE){
+ int gui_pause_flag=0; // gany!
mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n------ PAUSED -------\r");fflush(stdout);
#ifdef HAVE_NEW_GUI
if(use_gui) mplShMem->Playing=2;
@@ -1511,7 +1512,8 @@ if(auto_quality>0){
#ifdef HAVE_NEW_GUI
if(use_gui){
EventHandling();
- if(mplShMem->Playing!=2 || (rel_seek_secs || abs_seek_pos)) break; // end of pause or seek
+ if(mplShMem->Playing!=2 || (rel_seek_secs || abs_seek_pos))
+ { gui_pause_flag=1; break; } // end of pause or seek
}
#endif
if(use_stdin) usec_sleep(1000); // do not eat the CPU
@@ -1520,7 +1522,7 @@ if(auto_quality>0){
if (audio_out && sh_audio)
audio_out->resume(); // resume audio
#ifdef HAVE_NEW_GUI
- if(use_gui) if(mplShMem->Playing==2) mplShMem->Playing=1;
+ if(use_gui && !gui_pause_flag) mplShMem->Playing=1; // play from keyboard
#endif
}