summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-17 21:16:10 +0200
committerwm4 <wm4@nowhere>2015-05-17 21:16:10 +0200
commitf4c412a0578d7448640eb8000876196f51299f13 (patch)
tree2b5611d19088ef535f52cef46e0be2a80183f748 /player/command.c
parentaa78dff42b1dc6bbc6b6aa836e42341015ce164a (diff)
downloadmpv-f4c412a0578d7448640eb8000876196f51299f13.tar.bz2
mpv-f4c412a0578d7448640eb8000876196f51299f13.tar.xz
command: add playlist_shuffle command
Fixes #965.
Diffstat (limited to 'player/command.c')
-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;