summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 9fbe6fd694..c03e63d254 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4483,6 +4483,11 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
break;
}
+ case MP_CMD_PLAYLIST_SHUFFLE: {
+ playlist_shuffle(mpctx->playlist);
+ break;
+ }
+
case MP_CMD_STOP:
playlist_clear(mpctx->playlist);
mpctx->stop_play = PT_STOP;