summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-01 17:05:46 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-01 17:05:46 +0000
commitc765db84a3954100cc9ccdbc3a668dc349077ae0 (patch)
tree6f11c507e8f54edbe30a910d79eb09cfaffc6e9b /command.c
parentd20131defaa7b2c087e03d0b8c763bb22fd335fc (diff)
downloadmpv-c765db84a3954100cc9ccdbc3a668dc349077ae0.tar.bz2
mpv-c765db84a3954100cc9ccdbc3a668dc349077ae0.tar.xz
Use the existing pt_iter_goto_head function instead of reimplementing it
(incorrectly). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27682 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index f71b5997a6..0ed2b759bb 100644
--- a/command.c
+++ b/command.c
@@ -2645,7 +2645,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
/* 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 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
/* 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;
}
}