summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c
index c9ea462f81..fffbcf78a9 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -520,8 +520,8 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
// Drop data queued for output, or which the AO is currently outputting.
void clear_audio_output_buffers(struct MPContext *mpctx)
{
- if (mpctx->ao) {
+ if (mpctx->ao)
ao_reset(mpctx->ao);
+ if (mpctx->ao_buffer)
mp_audio_buffer_clear(mpctx->ao_buffer);
- }
}