summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-21 11:07:02 +0200
committerwm4 <wm4@nowhere>2017-09-21 12:42:09 +0200
commit3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3 (patch)
tree13a7e321ce6accceca720fb654cdf7ea8eee0afc /audio/filter/af.c
parentcaaa1189ba75a7df9a4d02f7747d6c0bf3b05012 (diff)
downloadmpv-3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3.tar.bz2
mpv-3a2d5e68acb2ac0f8b09b896907a692b1c48c6b3.tar.xz
audio: move libswresample wrapper out of audio filter code
Move it from af_lavrresample.c to a new aconverter.c file, which is independent from the filter chain code. It also doesn't use mp_audio, and thus has no GPL dependencies. Preparation for later commits. Not particularly well tested, so have fun.
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r--audio/filter/af.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c
index 0df0f28bb6..a76945feea 100644
--- a/audio/filter/af.c
+++ b/audio/filter/af.c
@@ -175,6 +175,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),
.opts = s->opts,
+ .global = s->global,
.replaygain_data = s->replaygain_data,
.out_pool = mp_audio_pool_create(af),
};
@@ -546,6 +547,7 @@ struct af_stream *af_new(struct mpv_global *global)
s->first->next = s->last;
s->last->prev = s->first;
s->opts = global->opts;
+ s->global = global;
return s;
}