From 650e88975227f3c6dc17692857c52ad9bb955bb0 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Mon, 27 Oct 2014 21:50:40 +0100 Subject: 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. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3