channelmix: keep amount of volumes we parsed

This commit is contained in:
Wim Taymans 2020-10-05 21:07:23 +02:00
parent 630889493c
commit c81021a742

View file

@ -396,8 +396,8 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
changed++; changed++;
break; break;
case SPA_PROP_channelVolumes: case SPA_PROP_channelVolumes:
if (spa_pod_copy_array(&prop->value, SPA_TYPE_Float, if ((p->n_channel_volumes = spa_pod_copy_array(&prop->value, SPA_TYPE_Float,
p->channel_volumes, SPA_AUDIO_MAX_CHANNELS) > 0) p->channel_volumes, SPA_AUDIO_MAX_CHANNELS)) > 0)
changed++; changed++;
remap_volumes(p, this->mix.src_chan); remap_volumes(p, this->mix.src_chan);
break; break;