summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-09-17 15:34:40 +0200
committerwm4 <wm4@nowhere>2020-09-17 15:34:40 +0200
commit9806e9f82b64b6c5336cbaaa7c8ce0ef12a56c4f (patch)
tree0d0643688521a10cec3c8a551e8a7d8a3f3369f6 /player/command.c
parent602384348e718c772a2f0d1490d0f26d3578c373 (diff)
downloadmpv-9806e9f82b64b6c5336cbaaa7c8ce0ef12a56c4f.tar.bz2
mpv-9806e9f82b64b6c5336cbaaa7c8ce0ef12a56c4f.tar.xz
command, demux: make drop-buffers reset state even harder
Leave nothing left when it's executed.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c3
1 files changed, 1 insertions, 2 deletions
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);