From f4c412a0578d7448640eb8000876196f51299f13 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 17 May 2015 21:16:10 +0200 Subject: command: add playlist_shuffle command Fixes #965. --- player/command.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'player') 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; -- cgit v1.2.3