summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-18 14:18:37 +0100
committerwm4 <wm4@nowhere>2013-11-18 14:21:01 +0100
commitd5bc4ee79864404423ddf2786d8e8089fc46eeca (patch)
treee884a45b31ef0700af7c9bf85af72a322f4ae77c /mpvcore
parent5594718b6bda3a230e2e2c3cb06d2837c5a02688 (diff)
downloadmpv-d5bc4ee79864404423ddf2786d8e8089fc46eeca.tar.bz2
mpv-d5bc4ee79864404423ddf2786d8e8089fc46eeca.tar.xz
audio: drop buffered filter data when seeking
This could lead to (barely) audible artifacts with --af=scaletempo and modified playback speed.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/player/playloop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/player/playloop.c b/mpvcore/player/playloop.c
index f7ca8d4598..d611880605 100644
--- a/mpvcore/player/playloop.c
+++ b/mpvcore/player/playloop.c
@@ -184,6 +184,8 @@ static void seek_reset(struct MPContext *mpctx, bool reset_ao)
if (mpctx->sh_audio) {
resync_audio_stream(mpctx->sh_audio);
+ if (mpctx->sh_audio->afilter)
+ af_control_all(mpctx->sh_audio->afilter, AF_CONTROL_RESET, NULL);
if (reset_ao)
clear_audio_output_buffers(mpctx);
clear_audio_decode_buffers(mpctx);