diff options
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); } } |