diff options
author | wm4 <wm4@nowhere> | 2015-06-09 18:29:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-09 18:29:11 +0200 |
commit | f51459c07710a3e250339e10949d9f673c175a05 (patch) | |
tree | 990f779ccd6dd5ec08f028d25964ab92261c4788 /player | |
parent | b7d833c2a6466dc8231c7a0a5eb5372b85910fc7 (diff) |
audio: add some change notifications
We must be sure that every change comes with a notification. Otherwise,
some property changes could possibly be missed.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |