diff options
author | wm4 <wm4@nowhere> | 2016-11-18 13:46:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-18 13:46:34 +0100 |
commit | 5a011c5c06d3a3263cd0d97d2b7c8f9bf2d1f816 (patch) | |
tree | 11e47ba8513e3a4c17f11605c5c3eb5b4421917b /player | |
parent | c4d6fcbb021a3e3d0c62d6f60ec88aaea602b054 (diff) | |
download | mpv-5a011c5c06d3a3263cd0d97d2b7c8f9bf2d1f816.tar.bz2 mpv-5a011c5c06d3a3263cd0d97d2b7c8f9bf2d1f816.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |