summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-03-12 10:41:52 +0100
committerwm4 <wm4@nowhere>2014-03-13 14:36:20 +0100
commit04e14ec8f69c66681808609046111bc225119e8e (patch)
treed9cf84254ed05077141d7ae54c90bf3ff971533b /player
parent7918034e151a49fa84622cb3a2753377b3b5597b (diff)
downloadmpv-04e14ec8f69c66681808609046111bc225119e8e.tar.bz2
mpv-04e14ec8f69c66681808609046111bc225119e8e.tar.xz
af: add metadata field to af_stream and af_instance
This allows to propagate metadata information to audio filters. Closes #632
Diffstat (limited to 'player')
-rw-r--r--player/audio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index 28a110eba8..e7c2b8baf4 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -125,6 +125,7 @@ void reinit_audio_chain(struct MPContext *mpctx)
mpctx->d_audio->global = mpctx->global;
mpctx->d_audio->opts = opts;
mpctx->d_audio->header = sh;
+ mpctx->d_audio->metadata = mpctx->demuxer->metadata;
if (!audio_init_best_codec(mpctx->d_audio, opts->audio_decoders))
goto init_error;
}