From 6a892c27b03e28619d27bc49ec17e83d88405cec Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Jan 2022 20:07:05 +0100 Subject: [PATCH] audioconvert: block volume updates when disabled --- spa/plugins/audioconvert/channelmix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spa/plugins/audioconvert/channelmix.c b/spa/plugins/audioconvert/channelmix.c index d9905df0a..de00bb1d2 100644 --- a/spa/plugins/audioconvert/channelmix.c +++ b/spa/plugins/audioconvert/channelmix.c @@ -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;