mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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
This commit is contained in:
parent
d20131defa
commit
c765db84a3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user