# HG changeset patch # User reimar # Date 1222880746 0 # Node ID 99838ea34e550c2e8433e826452eb7cb0e650529 # Parent 1eee249e519d1f705e158380503a43e23351c092 Use the existing pt_iter_goto_head function instead of reimplementing it (incorrectly). diff -r 1eee249e519d -r 99838ea34e55 command.c --- a/command.c Wed Oct 01 17:05:39 2008 +0000 +++ b/command.c Wed Oct 01 17:05:46 2008 +0000 @@ -2645,7 +2645,7 @@ /* NOP */ ; play_tree_free_list(mpctx->playtree->child, 1); play_tree_set_child(mpctx->playtree, e); - play_tree_iter_step(mpctx->playtree_iter, 0, 0); + pt_iter_goto_head(mpctx->playtree_iter); mpctx->eof = PT_NEXT_SRC; } brk_cmd = 1; @@ -2668,7 +2668,7 @@ /* NOP */ ; play_tree_free_list(mpctx->playtree->child, 1); play_tree_set_child(mpctx->playtree, e); - play_tree_iter_step(mpctx->playtree_iter, 0, 0); + pt_iter_goto_head(mpctx->playtree_iter); mpctx->eof = PT_NEXT_SRC; } }