audioconvert: block volume updates when disabled

This commit is contained in:
Wim Taymans 2022-01-20 20:07:05 +01:00
parent a4b1e4c42a
commit 6a892c27b0

View file

@ -649,6 +649,9 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
if (param == NULL)
return 0;
if (this->props.disabled)
return 0;
SPA_POD_OBJECT_FOREACH(obj, prop) {
switch (prop->key) {
case SPA_PROP_volume:
@ -731,6 +734,9 @@ static int apply_midi(struct impl *this, const struct spa_pod *value)
if (size < 3)
return -EINVAL;
if (this->props.disabled)
return 0;
if ((val[0] & 0xf0) != 0xb0 || val[1] != 7)
return 0;