diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 12:19:52 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-30 12:19:52 +0000 |
commit | 8b5253baac7bd237bbae6d4483c47c2f822105e5 (patch) | |
tree | f897757a67f31820ab292b1732243e8957270ca6 | |
parent | 04d08c838d44d5a2a4def5249d149848c1e91193 (diff) |
pause/play
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1772 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mplayer.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1498,6 +1498,7 @@ if(auto_quality>0){ #ifdef HAVE_NEW_GUI if(use_gui){ wsHandleEvents();mplTimerHandler(0); // handle GUI timer events + if(mplShMem->Playing!=2) break; // end of pause } #endif if(use_stdin) usec_sleep(1000); // do not eat the CPU @@ -1767,6 +1768,15 @@ 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); + switch(mplShMem->Playing){ + case 0: // stop +// osd_function=OSD_PAUSE;break; + case 1: // play + break; + case 2: // pause + osd_function=OSD_PAUSE;break; + } } #endif |