1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 03:15:52 +00:00

mpctx->playtree is a node, files can not be directly appended to it,

append them to its child instead.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27681 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-10-01 17:05:39 +00:00
parent 52ef7eb263
commit d20131defa

View File

@ -2637,7 +2637,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
play_tree_add_file(e, cmd->args[0].v.s);
if (cmd->args[1].v.i) // append
play_tree_append_entry(mpctx->playtree, e);
play_tree_append_entry(mpctx->playtree->child, e);
else {
// Go back to the starting point.
while (play_tree_iter_up_step
@ -2659,7 +2659,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
MSGTR_PlaylistLoadUnable, cmd->args[0].v.s);
else {
if (cmd->args[1].v.i) // append
play_tree_append_entry(mpctx->playtree, e);
play_tree_append_entry(mpctx->playtree->child, e);
else {
// Go back to the starting point.
while (play_tree_iter_up_step