summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-01-20 20:07:08 +0200
committerJan Ekström <jeebjp@gmail.com>2021-02-15 00:13:03 +0200
commitb0b37df31faf01cd88e22ef5be882628b3d8d607 (patch)
treef086314feb95928bdf64947c8535298d03e1ea6e
parent2e45a3d3365b5b76f95b8e4a5c1045ea30fcb351 (diff)
downloadmpv-b0b37df31faf01cd88e22ef5be882628b3d8d607.tar.bz2
mpv-b0b37df31faf01cd88e22ef5be882628b3d8d607.tar.xz
filters/auto_filters: switch from scaletempo to scaletempo2
Part 1 of "look how well it performs, then start cleaning up the old one." Closes #8376
-rw-r--r--DOCS/man/options.rst4
-rw-r--r--filters/f_auto_filters.c4
-rw-r--r--filters/f_auto_filters.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 2c46d93d3f..755e8c1748 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -213,7 +213,7 @@ Playback Control
Slow down or speed up playback by the factor given as parameter.
If ``--audio-pitch-correction`` (on by default) is used, playing with a
- speed higher than normal automatically inserts the ``scaletempo`` audio
+ speed higher than normal automatically inserts the ``scaletempo2`` audio
filter.
``--pause``
@@ -1746,7 +1746,7 @@ Audio
``--audio-pitch-correction=<yes|no>``
If this is enabled (default), playing with a speed different from normal
- automatically inserts the ``scaletempo`` audio filter. For details, see
+ automatically inserts the ``scaletempo2`` audio filter. For details, see
audio filter section.
``--audio-device=<name>``
diff --git a/filters/f_auto_filters.c b/filters/f_auto_filters.c
index a5394dd35a..5dd3a4adff 100644
--- a/filters/f_auto_filters.c
+++ b/filters/f_auto_filters.c
@@ -329,9 +329,9 @@ static void aspeed_process(struct mp_filter *f)
if (req_filter) {
if (req_filter == 1) {
- MP_VERBOSE(f, "adding scaletempo\n");
+ MP_VERBOSE(f, "adding scaletempo2\n");
p->sub.filter = mp_create_user_filter(f, MP_OUTPUT_CHAIN_AUDIO,
- "scaletempo", NULL);
+ "scaletempo2", NULL);
} else if (req_filter == 2) {
MP_VERBOSE(f, "adding drop\n");
p->sub.filter = mp_create_user_filter(f, MP_OUTPUT_CHAIN_AUDIO,
diff --git a/filters/f_auto_filters.h b/filters/f_auto_filters.h
index 98043c9301..f315084158 100644
--- a/filters/f_auto_filters.h
+++ b/filters/f_auto_filters.h
@@ -9,5 +9,5 @@ struct mp_filter *mp_deint_create(struct mp_filter *parent);
// Rotate according to mp_image.rotate and VO capabilities.
struct mp_filter *mp_autorotate_create(struct mp_filter *parent);
-// Insert a filter that inserts scaletempo depending on speed settings.
+// Insert a filter that inserts scaletempo2 depending on speed settings.
struct mp_filter *mp_autoaspeed_create(struct mp_filter *parent);