From 9806e9f82b64b6c5336cbaaa7c8ce0ef12a56c4f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Sep 2020 15:34:40 +0200 Subject: command, demux: make drop-buffers reset state even harder Leave nothing left when it's executed. --- player/command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index b0753b690a..5197dafffc 100644 --- a/player/command.c +++ b/player/command.c @@ -5561,8 +5561,7 @@ static void cmd_drop_buffers(void *p) struct mp_cmd_ctx *cmd = p; struct MPContext *mpctx = cmd->mpctx; - reset_audio_state(mpctx); - reset_video_state(mpctx); + reset_playback_state(mpctx); if (mpctx->demuxer) demux_flush(mpctx->demuxer); -- cgit v1.2.3