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

ben subversion at mplayerhq.hu
Thu Aug 7 11:54:00 CEST 2008


Author: ben
Date: Thu Aug  7 11:53:59 2008
New Revision: 27424

Log:
Fix wrong behavior with slave command by going back to the starting point
of the play_tree to pop all existing configurations.
Patch by Mathieu Schroeter <mathieu dot schroeter at gamesover dot ch>.



Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Thu Aug  7 11:53:59 2008
@@ -2655,6 +2655,10 @@ int run_command(MPContext * mpctx, mp_cm
 	    break;
 
 	case MP_CMD_STOP:
+	    // Go back to the starting point.
+	    while (play_tree_iter_up_step
+		   (mpctx->playtree_iter, 0, 1) != PLAY_TREE_ITER_END)
+		/* NOP */ ;
 	    mpctx->eof = PT_STOP;
 	    brk_cmd = 1;
 	    break;



More information about the MPlayer-cvslog mailing list