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.
This commit is contained in:
Alessandro Ghedini 2014-10-27 21:50:40 +01:00
parent 963edf5765
commit 650e889752
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}