# HG changeset patch # User ben # Date 1218102839 0 # Node ID f28981b3f233740eb59c426b005d2b888b119109 # Parent 1d2faa1020fb43e9e5447d8e7bdca079d78fe4c5 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 . diff -r 1d2faa1020fb -r f28981b3f233 command.c --- a/command.c Thu Aug 07 08:58:07 2008 +0000 +++ b/command.c Thu Aug 07 09:53:59 2008 +0000 @@ -2655,6 +2655,10 @@ 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;