diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 0559221322..d9a0d99745 100644 --- a/player/command.c +++ b/player/command.c @@ -4440,6 +4440,16 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) return r > 0; } + case MP_CMD_DROP_BUFFERS: { + reset_audio_state(mpctx); + reset_video_state(mpctx); + + if (mpctx->demuxer) + demux_flush(mpctx->demuxer); + + break; + } + case MP_CMD_VO_CMDLINE: if (mpctx->video_out) { char *s = cmd->args[0].v.s; |