From a5f53da229f0f3f5b7e248c47061a67f6d61d81e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jan 2018 04:16:39 +0100 Subject: 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). --- player/audio.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'player') diff --git a/player/audio.c b/player/audio.c index 598e145147..9b842a9003 100644 --- a/player/audio.c +++ b/player/audio.c @@ -110,10 +110,14 @@ static void recreate_speed_filters(struct MPContext *mpctx) return; int method = get_speed_method(mpctx); - char *filter = method == AF_CONTROL_SET_PLAYBACK_SPEED - ? "scaletempo" : "lavrresample"; + char *filter = "lavrresample"; + char *args[] = {"deprecation-warning", "no", NULL}; + if (method == AF_CONTROL_SET_PLAYBACK_SPEED) { + filter = "scaletempo"; + args[0] = NULL; + } - if (!af_add(afs, filter, "playback-speed", NULL)) + if (!af_add(afs, filter, "playback-speed", args)) goto fail; if (!update_speed_filters(mpctx)) -- cgit v1.2.3