[Mplayer-cvslog] CVS: main mplayer.c,1.256,1.257
Arpi of Ize
arpi at mplayer.dev.hu
Thu Aug 30 14:47:15 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv29412
Modified Files:
mplayer.c
Log Message:
stop/pause/seek gui
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -r1.256 -r1.257
--- mplayer.c 30 Aug 2001 12:19:52 -0000 1.256
+++ mplayer.c 30 Aug 2001 12:47:13 -0000 1.257
@@ -1498,7 +1498,7 @@
#ifdef HAVE_NEW_GUI
if(use_gui){
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
if(use_stdin) usec_sleep(1000); // do not eat the CPU
@@ -1769,14 +1769,8 @@
}
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;
- }
+ if(mplShMem->Playing==0) break; // STOP
+ if(mplShMem->Playing==2) osd_function=OSD_PAUSE;
}
#endif
More information about the MPlayer-cvslog
mailing list