summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-17 02:52:26 +0100
committerwm4 <wm4@nowhere>2014-02-17 02:52:59 +0100
commit5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 (patch)
treee46f60111fa1655b6c9b394330050eaa84d2b9ab /player/audio.c
parentb3b59b9a2d51d57656eda965d02762131b0bd5b7 (diff)
downloadmpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.bz2
mpv-5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6.tar.xz
client API: add events for video and audio reconfig
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index 39e1eddabd..ed4d0f5f2a 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -39,6 +39,7 @@
#include "video/decode/dec_video.h"
#include "core.h"
+#include "command.h"
static int build_afilter_chain(struct MPContext *mpctx)
{
@@ -111,6 +112,8 @@ void reinit_audio_chain(struct MPContext *mpctx)
goto no_audio;
}
+ mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
+
if (!(mpctx->initialized_flags & INITIALIZED_ACODEC)) {
mpctx->initialized_flags |= INITIALIZED_ACODEC;
assert(!mpctx->d_audio);