mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
channelmix: keep amount of volumes we parsed
This commit is contained in:
parent
630889493c
commit
c81021a742
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue