diff options
author | wm4 <wm4@nowhere> | 2014-02-17 02:52:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-17 02:52:59 +0100 |
commit | 5fcf4b46f7e1eea43a2e675a6be3fa99c2dd4dd6 (patch) | |
tree | e46f60111fa1655b6c9b394330050eaa84d2b9ab /player/audio.c | |
parent | b3b59b9a2d51d57656eda965d02762131b0bd5b7 (diff) | |
download | mpv-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.c | 3 |
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); |