From 3f3d71b0a88783e68984311c2710290a59400bab Mon Sep 17 00:00:00 2001 From: Sai Ke WANG Date: Sun, 3 Nov 2013 01:06:45 -0400 Subject: command: use mp_set_playlist_entry Signed-off-by: wm4 --- player/command.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'player/command.c') 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; -- cgit v1.2.3