mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
audioconvert: block volume updates when disabled
This commit is contained in:
parent
a4b1e4c42a
commit
6a892c27b0
1 changed files with 6 additions and 0 deletions
|
|
@ -649,6 +649,9 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
|
||||||
if (param == NULL)
|
if (param == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (this->props.disabled)
|
||||||
|
return 0;
|
||||||
|
|
||||||
SPA_POD_OBJECT_FOREACH(obj, prop) {
|
SPA_POD_OBJECT_FOREACH(obj, prop) {
|
||||||
switch (prop->key) {
|
switch (prop->key) {
|
||||||
case SPA_PROP_volume:
|
case SPA_PROP_volume:
|
||||||
|
|
@ -731,6 +734,9 @@ static int apply_midi(struct impl *this, const struct spa_pod *value)
|
||||||
if (size < 3)
|
if (size < 3)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (this->props.disabled)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if ((val[0] & 0xf0) != 0xb0 || val[1] != 7)
|
if ((val[0] & 0xf0) != 0xb0 || val[1] != 7)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue