summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-10-27 21:50:40 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-10-27 21:50:43 +0100
commit650e88975227f3c6dc17692857c52ad9bb955bb0 (patch)
treefbac6ca8e5d8678706a00b5340a98e53be3b7ee8 /player/command.c
parent963edf5765f1ed29e690a7716b4b60941b99945e (diff)
downloadmpv-650e88975227f3c6dc17692857c52ad9bb955bb0.tar.bz2
mpv-650e88975227f3c6dc17692857c52ad9bb955bb0.tar.xz
command: play the correct entry with loadfile ... append-play
The playlist may be non-empty even if the player is idle. Instead of playing the first entry, play the entry that was just added.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 7739e7bf45..0806cd093c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4064,7 +4064,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
if (!append || (append == 2 && !mpctx->playlist->current)) {
if (opts->position_save_on_quit) // requested in issue #1148
mp_write_watch_later_conf(mpctx);
- mp_set_playlist_entry(mpctx, mpctx->playlist->first);
+ mp_set_playlist_entry(mpctx, entry);
}
break;
}