1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

audio: release pending audio frame on seeking

This commit is contained in:
wm4 2016-01-25 13:41:28 +01:00
parent 3a015b9ec7
commit 223588b36a

View File

@ -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);
}