summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
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 6fe5b267ce..f71b5997a6 100644
--- a/command.c
+++ b/command.c
@@ -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