From e7977ec87574331510d11751551109cf4794084d Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Tue, 25 Mar 2014 11:49:25 +0100 Subject: af: add replaygain_data field to af_stream and af_instance Closes #664 --- audio/filter/af.c | 1 + audio/filter/af.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'audio/filter') diff --git a/audio/filter/af.c b/audio/filter/af.c index 1ef391fbbf..d2c4bae40e 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -205,6 +205,7 @@ static struct af_instance *af_create(struct af_stream *s, char *name, .data = talloc_zero(af, struct mp_audio), .log = mp_log_new(af, s->log, name), .metadata = s->metadata, + .replaygain_data = s->replaygain_data, }; struct m_config *config = m_config_from_obj_desc(af, s->log, &desc); if (m_config_apply_defaults(config, name, s->opts->af_defs) < 0) diff --git a/audio/filter/af.h b/audio/filter/af.h index 9e424308b8..aa49963b28 100644 --- a/audio/filter/af.h +++ b/audio/filter/af.h @@ -60,6 +60,7 @@ struct af_instance { const struct af_info *info; struct mp_log *log; struct mp_tags *metadata; + struct replaygain_data *replaygain_data; 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 @@ -92,6 +93,7 @@ struct af_stream { struct mp_log *log; struct MPOpts *opts; struct mp_tags *metadata; + struct replaygain_data *replaygain_data; }; // Return values -- cgit v1.2.3