From f51459c07710a3e250339e10949d9f673c175a05 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 9 Jun 2015 18:29:11 +0200 Subject: audio: add some change notifications We must be sure that every change comes with a notification. Otherwise, some property changes could possibly be missed. --- player/audio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/player/audio.c b/player/audio.c index b354f701ae..1bf80802f6 100644 --- a/player/audio.c +++ b/player/audio.c @@ -150,6 +150,8 @@ void uninit_audio_out(struct MPContext *mpctx) ao_drain(mpctx->ao); mixer_uninit_audio(mpctx->mixer); ao_uninit(mpctx->ao); + + mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL); } mpctx->ao = NULL; talloc_free(mpctx->ao_decoder_fmt); @@ -166,6 +168,8 @@ void uninit_audio_chain(struct MPContext *mpctx) mpctx->ao_buffer = NULL; mpctx->audio_status = STATUS_EOF; reselect_demux_streams(mpctx); + + mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL); } } -- cgit v1.2.3