mirror of
https://github.com/mpv-player/mpv
synced 2025-01-07 07:30:09 +00:00
stop/pause/seek gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1773 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8b5253baac
commit
5625f52f46
12
mplayer.c
12
mplayer.c
@ -1498,7 +1498,7 @@ if(auto_quality>0){
|
|||||||
#ifdef HAVE_NEW_GUI
|
#ifdef HAVE_NEW_GUI
|
||||||
if(use_gui){
|
if(use_gui){
|
||||||
wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
|
wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
|
||||||
if(mplShMem->Playing!=2) break; // end of pause
|
if(mplShMem->Playing!=2 || (rel_seek_secs || abs_seek_pos)) break; // end of pause or seek
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(use_stdin) usec_sleep(1000); // do not eat the CPU
|
if(use_stdin) usec_sleep(1000); // do not eat the CPU
|
||||||
@ -1769,14 +1769,8 @@ if(rel_seek_secs || abs_seek_pos){
|
|||||||
}
|
}
|
||||||
mplShMem->TimeSec=d_video->pts;
|
mplShMem->TimeSec=d_video->pts;
|
||||||
printf("mplShMem->Playing=%d \n",mplShMem->Playing);
|
printf("mplShMem->Playing=%d \n",mplShMem->Playing);
|
||||||
switch(mplShMem->Playing){
|
if(mplShMem->Playing==0) break; // STOP
|
||||||
case 0: // stop
|
if(mplShMem->Playing==2) osd_function=OSD_PAUSE;
|
||||||
// osd_function=OSD_PAUSE;break;
|
|
||||||
case 1: // play
|
|
||||||
break;
|
|
||||||
case 2: // pause
|
|
||||||
osd_function=OSD_PAUSE;break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user