mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
9cd0555177
commit
c13c9945bf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user