mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 16:10:04 +01:00
Merge branch 'fix_filter_chain_option' into 'master'
audioconvert: Fix disabling of filter chains See merge request pipewire/pipewire!2629
This commit is contained in:
commit
a90cd9191a
1 changed files with 4 additions and 4 deletions
|
|
@ -1500,6 +1500,10 @@ static int audioconvert_set_param(struct impl *this, const char *k, const char *
|
||||||
}
|
}
|
||||||
else if (spa_streq(k, "channelmix.lock-volumes"))
|
else if (spa_streq(k, "channelmix.lock-volumes"))
|
||||||
this->props.lock_volumes = spa_atob(s);
|
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.")) {
|
else if (spa_strstartswith(k, "audioconvert.filter-graph.")) {
|
||||||
int order = atoi(k + strlen("audioconvert.filter-graph."));
|
int order = atoi(k + strlen("audioconvert.filter-graph."));
|
||||||
if ((res = load_filter_graph(this, s, order)) < 0) {
|
if ((res = load_filter_graph(this, s, order)) < 0) {
|
||||||
|
|
@ -1507,10 +1511,6 @@ static int audioconvert_set_param(struct impl *this, const char *k, const char *
|
||||||
order, spa_strerror(res));
|
order, spa_strerror(res));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (spa_streq(k, "audioconvert.filter-graph.disable")) {
|
|
||||||
if (!*disable_filter)
|
|
||||||
*disable_filter = spa_atob(s);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue