summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-01 17:05:39 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-01 17:05:39 +0000
commitd20131defaa7b2c087e03d0b8c763bb22fd335fc (patch)
tree8ea1613df60350a63b51fbbb2cc1568d172d1bc4 /command.c
parent52ef7eb2635aae55649c384b62e58f0bb98a658f (diff)
downloadmpv-d20131defaa7b2c087e03d0b8c763bb22fd335fc.tar.bz2
mpv-d20131defaa7b2c087e03d0b8c763bb22fd335fc.tar.xz
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
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