diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-03-12 10:41:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-13 14:36:20 +0100 |
commit | 04e14ec8f69c66681808609046111bc225119e8e (patch) | |
tree | d9cf84254ed05077141d7ae54c90bf3ff971533b /audio/decode/dec_audio.c | |
parent | 7918034e151a49fa84622cb3a2753377b3b5597b (diff) | |
download | mpv-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 'audio/decode/dec_audio.c')
-rw-r--r-- | audio/decode/dec_audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c index ad9ccb504e..b753043869 100644 --- a/audio/decode/dec_audio.c +++ b/audio/decode/dec_audio.c @@ -213,6 +213,8 @@ int audio_init_filters(struct dec_audio *d_audio, int in_samplerate, mp_audio_set_channels(&afs->output, out_channels); mp_audio_set_format(&afs->output, *out_format); + afs->metadata = d_audio->metadata; + char *s_from = mp_audio_config_to_str(&afs->input); char *s_to = mp_audio_config_to_str(&afs->output); MP_VERBOSE(d_audio, "Building audio filter chain for %s -> %s...\n", s_from, s_to); |