[Mplayer-cvslog] CVS: main mplayer.c,1.255,1.256
Arpi of Ize
arpi at mplayer.dev.hu
Thu Aug 30 14:19:54 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv27643
Modified Files:
mplayer.c
Log Message:
pause/play
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -r1.255 -r1.256
--- mplayer.c 30 Aug 2001 11:54:27 -0000 1.255
+++ mplayer.c 30 Aug 2001 12:19:52 -0000 1.256
@@ -1498,6 +1498,7 @@
#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 @@
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
More information about the MPlayer-cvslog
mailing list