summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-13 20:07:14 +0200
committerwm4 <wm4@nowhere>2014-07-13 20:07:14 +0200
commitae7228c6a363a54249cc754089e12c2042811216 (patch)
tree69ca2be2baafceb6fbc921d3a1dff2cb0a0bf226 /player/command.c
parentfb54a1436aced8462d63c1cdbb4972c05829e26f (diff)
downloadmpv-ae7228c6a363a54249cc754089e12c2042811216.tar.bz2
mpv-ae7228c6a363a54249cc754089e12c2042811216.tar.xz
audio: drop buffered audio when switching tracks or filters
No reason to wait until the audio has been played. This isn't a problem with gapless audio disabled, and since gapless is now default, this behavior might be perceived as regression. CC: @mpv-player/stable
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 159367a028..5451c13a16 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3055,6 +3055,7 @@ static bool reinit_filters(MPContext *mpctx, enum stream_type mediatype)
case STREAM_VIDEO:
return reinit_video_filters(mpctx) >= 0;
case STREAM_AUDIO:
+ clear_audio_output_buffers(mpctx);
return reinit_audio_filters(mpctx) >= 0;
}
return false;