summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-30 21:49:24 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-30 21:49:24 +0000
commit5024b76c563a4dc1ecef1f0f700daa0d45e31ca9 (patch)
treecebcfb0e14c0f3e810750d0b80296e6dffe89f33 /mplayer.c
parent6e018b0f5a11814e27e0982810df8db47f27f16a (diff)
downloadmpv-5024b76c563a4dc1ecef1f0f700daa0d45e31ca9.tar.bz2
mpv-5024b76c563a4dc1ecef1f0f700daa0d45e31ca9.tar.xz
stop fix, fileselector worx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1791 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 69c44ccd13..4943074416 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -585,6 +585,9 @@ play_next_file:
usleep(20000);
wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
}
+ if(gui_no_filename){
+ filename=mplShMem->Filename;
+ }
}
#endif
@@ -1777,7 +1780,7 @@ if(rel_seek_secs || abs_seek_pos){
mplShMem->Position=(len<=0)?0:((float)(pos-demuxer->movi_start) / len * 100.0f);
}
mplShMem->TimeSec=d_video->pts;
- printf("mplShMem->Playing=%d \n",mplShMem->Playing);
+// printf("mplShMem->Playing=%d \n",mplShMem->Playing);
if(mplShMem->Playing==0) break; // STOP
if(mplShMem->Playing==2) osd_function=OSD_PAUSE;
}
@@ -1832,7 +1835,7 @@ mp_msg(MSGT_GLOBAL,MSGL_V,"EOF code: %d \n",eof);
}
-if(curr_filename+1<num_filenames){
+if(curr_filename+1<num_filenames || use_gui){
// partial uninit:
// restore terminal:
@@ -1852,8 +1855,7 @@ if(curr_filename+1<num_filenames){
}
goto_next_file: // don't jump here after ao/vo/getch initialization!
- ++curr_filename;
-if(curr_filename<num_filenames){
+if(use_gui || ++curr_filename<num_filenames){
current_module="uninit_vcodec";
if(sh_video) uninit_video(sh_video);