summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
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 /audio/filter/af.h
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 'audio/filter/af.h')
-rw-r--r--audio/filter/af.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index 6b0f0e9c01..9e424308b8 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -59,6 +59,7 @@ struct af_info {
struct af_instance {
const struct af_info *info;
struct mp_log *log;
+ struct mp_tags *metadata;
int (*control)(struct af_instance *af, int cmd, void *arg);
void (*uninit)(struct af_instance *af);
/* flags is a bit mask of AF_FILTER_FLAG_* values
@@ -90,6 +91,7 @@ struct af_stream {
struct mp_log *log;
struct MPOpts *opts;
+ struct mp_tags *metadata;
};
// Return values