summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-13 15:52:17 +0100
committerwm4 <wm4@nowhere>2016-03-13 15:52:17 +0100
commitc13c9945bf84817ee1dd2d65e58660fb38e23a7f (patch)
treefb0fe256c87eaab88acf43f58a2ef426a6691a43 /player/audio.c
parent9cd055517748200ee0841bb323b32c74f7e60374 (diff)
downloadmpv-c13c9945bf84817ee1dd2d65e58660fb38e23a7f.tar.bz2
mpv-c13c9945bf84817ee1dd2d65e58660fb38e23a7f.tar.xz
player: add missing audio reconfig events
This also takes care of sending the required property change notifications. Fixes #2929 and maybe fixes #2920.
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index f17587a1ca..3a2c60b8ab 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -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: