[MPlayer-cvslog] r25060 - trunk/command.c

ulion subversion at mplayerhq.hu
Sat Nov 17 12:23:58 CET 2007


Author: ulion
Date: Sat Nov 17 12:23:58 2007
New Revision: 25060

Log:
Fix pausing_toggle not continue play bug when it follows a pause immediately.


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Sat Nov 17 12:23:58 2007
@@ -2800,7 +2800,11 @@ int run_command(MPContext * mpctx, mp_cm
 	break;
     case 3:	// "pausing_toggle"
 	mpctx->was_paused = !mpctx->was_paused;
-	// fall through
+	if (mpctx->was_paused)
+	    mpctx->osd_function = OSD_PAUSE;
+	else if (mpctx->osd_function == OSD_PAUSE)
+	    mpctx->osd_function = OSD_PLAY;
+	break;
     case 2:	// "pausing_keep"
 	if (mpctx->was_paused)
 	    mpctx->osd_function = OSD_PAUSE;



More information about the MPlayer-cvslog mailing list