player: add missing audio reconfig events

This also takes care of sending the required property change
notifications.

Fixes #2929 and maybe fixes #2920.
This commit is contained in:
wm4 2016-03-13 15:52:17 +01:00
parent 9cd0555177
commit c13c9945bf
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,8 @@ static int recreate_audio_filters(struct MPContext *mpctx)
mixer_reinit_audio(mpctx->mixer, mpctx->ao, afs);
mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
return 0;
fail:
@ -368,6 +370,8 @@ static void reinit_audio_filters_and_output(struct MPContext *mpctx)
update_playback_speed(mpctx);
mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
return;
init_error: