From ef983616307d8546b8eb7350137dc1f2b114c68b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 16 Feb 2021 12:22:50 +0100 Subject: [PATCH] audioconvert: when we reconfigure, emit param changed event When we reconfigure the node, the Props param changes with the new number of channels. --- spa/plugins/audioconvert/audioconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index a7e64873e..02cf78302 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -704,7 +704,8 @@ static int reconfigure_mode(struct impl *this, enum spa_param_port_config_mode m if (res < 0) return res; - this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS; + this->info.change_mask |= SPA_NODE_CHANGE_MASK_FLAGS | SPA_NODE_CHANGE_MASK_PARAMS; + this->params[3].flags ^= SPA_PARAM_INFO_SERIAL; this->info.flags &= ~SPA_NODE_FLAG_NEED_CONFIGURE; }