diff options
author | Sai Ke WANG <sai@onceking.com> | 2013-11-03 01:06:45 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-22 14:28:52 +0100 |
commit | 3f3d71b0a88783e68984311c2710290a59400bab (patch) | |
tree | 5e92c094a9d74d37efe4a15b22e302343109fd44 /player | |
parent | 612b8a8ab39eebc1cdf84a63cbd8d46c48eb4db1 (diff) |
command: use mp_set_playlist_entry
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c index 782629500d..4193bbd24f 100644 --- a/player/command.c +++ b/player/command.c @@ -4417,9 +4417,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) struct playlist_entry *e = mp_next_file(mpctx, dir, force); if (!e && !force) return -1; - mpctx->playlist->current = e; - mpctx->playlist->current_was_replaced = false; - mpctx->stop_play = PT_CURRENT_ENTRY; + mp_set_playlist_entry(mpctx, e); if (on_osd & MP_ON_OSD_MSG) mpctx->add_osd_seek_info |= OSD_SEEK_INFO_CURRENT_FILE; break; |