audio: add some change notifications

We must be sure that every change comes with a notification. Otherwise,
some property changes could possibly be missed.
This commit is contained in:
wm4 2015-06-09 18:29:11 +02:00
parent b7d833c2a6
commit f51459c077
1 changed files with 4 additions and 0 deletions

View File

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