From 8a9c2ae901a82db1f3832195d35048a16808ffc9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 22 Mar 2021 16:33:36 +0100 Subject: [PATCH] merger: don't try to change the volumes in PortConfig Just leave them be. Something else is supposed to changed the volumes if needed. In the usual case where nothing changes, we don't want to override the volumes. --- spa/plugins/audioconvert/merger.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/merger.c b/spa/plugins/audioconvert/merger.c index 8e2840d31..8cef9b46a 100644 --- a/spa/plugins/audioconvert/merger.c +++ b/spa/plugins/audioconvert/merger.c @@ -507,11 +507,8 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags, this->have_profile = true; this->port_count = info.info.raw.channels; this->monitor_count = this->monitor ? this->port_count : 0; - for (i = 0; i < this->port_count; i++) { + for (i = 0; i < this->port_count; i++) this->props.channel_map[i] = info.info.raw.position[i]; - this->props.channel_volumes[i] = this->props.volume; - this->props.monitor_volumes[i] = this->props.volume; - } this->props.n_channel_volumes = this->port_count; this->props.n_monitor_volumes = this->port_count; this->props.n_channels = this->port_count;