From 5a011c5c06d3a3263cd0d97d2b7c8f9bf2d1f816 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Nov 2016 13:46:34 +0100 Subject: player: removing last playlist entry while looping should not stop Run "playlist-remove current" while the last playlist entry is being played stopped playback. Fix this and return to the first entry instead. Fixes #3808. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/command.c b/player/command.c index 79ec3d0aef..7c1a6f3a6e 100644 --- a/player/command.c +++ b/player/command.c @@ -5157,7 +5157,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re return -1; // Can't play a removed entry if (mpctx->playlist->current == e && !mpctx->stop_play) - mpctx->stop_play = PT_CURRENT_ENTRY; + mpctx->stop_play = PT_NEXT_ENTRY; playlist_remove(mpctx->playlist, e); mp_notify(mpctx, MP_EVENT_CHANGE_PLAYLIST, NULL); mp_wakeup_core(mpctx); -- cgit v1.2.3