From c81021a74212a497ca2dc2ed5169fb6e43995b2f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 5 Oct 2020 21:07:23 +0200 Subject: [PATCH] channelmix: keep amount of volumes we parsed --- spa/plugins/audioconvert/channelmix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/channelmix.c b/spa/plugins/audioconvert/channelmix.c index b40dc85af..10dc31ec9 100644 --- a/spa/plugins/audioconvert/channelmix.c +++ b/spa/plugins/audioconvert/channelmix.c @@ -396,8 +396,8 @@ static int apply_props(struct impl *this, const struct spa_pod *param) changed++; break; case SPA_PROP_channelVolumes: - if (spa_pod_copy_array(&prop->value, SPA_TYPE_Float, - p->channel_volumes, SPA_AUDIO_MAX_CHANNELS) > 0) + if ((p->n_channel_volumes = spa_pod_copy_array(&prop->value, SPA_TYPE_Float, + p->channel_volumes, SPA_AUDIO_MAX_CHANNELS)) > 0) changed++; remap_volumes(p, this->mix.src_chan); break;