diff options
Diffstat (limited to 'mpvcore/player/command.c')
-rw-r--r-- | mpvcore/player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/player/command.c b/mpvcore/player/command.c index c2db56444e..f6aa429b99 100644 --- a/mpvcore/player/command.c +++ b/mpvcore/player/command.c @@ -2701,6 +2701,8 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) case MP_CMD_PLAYLIST_REMOVE: { struct playlist_entry *e = playlist_entry_from_index(mpctx->playlist, cmd->args[0].v.i); + if (cmd->args[0].v.i < 0) + e = mpctx->playlist->current; if (e) { // Can't play a removed entry if (mpctx->playlist->current == e) |