diff mplayer.c @ 1771:b3f6e2baffbf

pause/play
author arpi
date Thu, 30 Aug 2001 12:19:52 +0000
parents 63db543aae94
children 591398376329
line wrap: on
line diff
--- a/mplayer.c	Thu Aug 30 12:17:12 2001 +0000
+++ b/mplayer.c	Thu Aug 30 12:19:52 2001 +0000
@@ -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