summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-25 13:41:28 +0100
committerwm4 <wm4@nowhere>2016-01-25 13:41:28 +0100
commit223588b36a701701047e273178e3c0d1718045b8 (patch)
tree03b8221a6d8e2d75dbeb88ffde272296b78f940e /player/audio.c
parent3a015b9ec7186a41c91f6d0a565aea237806c8f4 (diff)
downloadmpv-223588b36a701701047e273178e3c0d1718045b8.tar.bz2
mpv-223588b36a701701047e273178e3c0d1718045b8.tar.xz
audio: release pending audio frame on seeking
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index 1a3a7a45df..932d38a14b 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -166,6 +166,8 @@ void update_playback_speed(struct MPContext *mpctx)
static void ao_chain_reset_state(struct ao_chain *ao_c)
{
ao_c->pts = MP_NOPTS_VALUE;
+ talloc_free(ao_c->input_frame);
+ ao_c->input_frame = NULL;
af_seek_reset(ao_c->af);
mp_audio_buffer_clear(ao_c->ao_buffer);
}