diff options
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; |