diff options
author | wm4 <wm4@nowhere> | 2018-01-12 04:16:39 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-13 03:26:45 -0800 |
commit | a5f53da229f0f3f5b7e248c47061a67f6d61d81e (patch) | |
tree | f8499623a62fef4e2f13a502ef6663886dd34540 /audio/filter/af.c | |
parent | cbfc001918cf3c562aff1d46822012997c9a8f84 (diff) | |
download | mpv-a5f53da229f0f3f5b7e248c47061a67f6d61d81e.tar.bz2 mpv-a5f53da229f0f3f5b7e248c47061a67f6d61d81e.tar.xz |
af_lavrresample: deprecate this filter
The future direction might be not having such a user-visible filter at
all, similar to how vf_scale went away (or actually, redirects to
libavfilter's vf_scale).
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r-- | audio/filter/af.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c index 35525d0774..cf200bbb84 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -341,8 +341,9 @@ static int filter_reinit_with_conversion(struct af_stream *s, struct af_instance } if (!mp_audio_config_equals(af->prev->data, &in)) { // Retry with conversion filter added. + char *opts[] = {"deprecation-warning", "no", NULL}; struct af_instance *new = - af_prepend(s, af, "lavrresample", NULL); + af_prepend(s, af, "lavrresample", opts); if (!new) return AF_ERROR; new->auto_inserted = true; @@ -408,7 +409,8 @@ static int af_do_reinit(struct af_stream *s, bool second_pass) s->first->fmt_in = s->first->fmt_out = s->input; if (mp_audio_config_valid(&convert_early)) { - struct af_instance *new = af_prepend(s, s->first, "lavrresample", NULL); + char *opts[] = {"deprecation-warning", "no", NULL}; + struct af_instance *new = af_prepend(s, s->first, "lavrresample", opts); if (!new) return AF_ERROR; new->auto_inserted = true; |