summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-12 04:16:39 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-13 03:26:45 -0800
commita5f53da229f0f3f5b7e248c47061a67f6d61d81e (patch)
treef8499623a62fef4e2f13a502ef6663886dd34540 /player
parentcbfc001918cf3c562aff1d46822012997c9a8f84 (diff)
downloadmpv-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 'player')
-rw-r--r--player/audio.c10
1 files changed, 7 insertions, 3 deletions
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))