From 747816a134c5a5ccbb258d5d588def6dce05ac05 Mon Sep 17 00:00:00 2001 From: Timon Date: Mon, 8 Dec 2025 14:19:15 +0100 Subject: [PATCH] Fix disabling of filter chains --- spa/plugins/audioconvert/audioconvert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 311f28957..e37abe1b0 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1330,6 +1330,10 @@ static int audioconvert_set_param(struct impl *this, const char *k, const char * } else if (spa_streq(k, "channelmix.lock-volumes")) this->props.lock_volumes = spa_atob(s); + else if (spa_streq(k, "audioconvert.filter-graph.disable")) { + if (!*disable_filter) + *disable_filter = spa_atob(s); + } else if (spa_strstartswith(k, "audioconvert.filter-graph.")) { int order = atoi(k + strlen("audioconvert.filter-graph.")); if ((res = load_filter_graph(this, s, order)) < 0) { @@ -1337,10 +1341,6 @@ static int audioconvert_set_param(struct impl *this, const char *k, const char * order, spa_strerror(res)); } } - else if (spa_streq(k, "audioconvert.filter-graph.disable")) { - if (!*disable_filter) - *disable_filter = spa_atob(s); - } else return 0; return 1;