diff options
author | wm4 <wm4@nowhere> | 2015-05-17 21:16:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-17 21:16:10 +0200 |
commit | f4c412a0578d7448640eb8000876196f51299f13 (patch) | |
tree | 2b5611d19088ef535f52cef46e0be2a80183f748 /player | |
parent | aa78dff42b1dc6bbc6b6aa836e42341015ce164a (diff) |
command: add playlist_shuffle command
Fixes #965.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
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; |