From 04e14ec8f69c66681808609046111bc225119e8e Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 12 Mar 2014 10:41:52 +0100 Subject: af: add metadata field to af_stream and af_instance This allows to propagate metadata information to audio filters. Closes #632 --- player/audio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player') 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; } -- cgit v1.2.3