mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
channelmix: only remap volumes when we have a format
Or else we remap to 0 channels and lose all info.
This commit is contained in:
parent
77d66d73d1
commit
7b4b73ae5b
|
@ -579,12 +579,14 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
|
|||
}
|
||||
}
|
||||
if (changed) {
|
||||
struct port *port = GET_IN_PORT(this, 0);
|
||||
if (have_soft_volume)
|
||||
p->have_soft_volume = true;
|
||||
else if (have_channel_volume)
|
||||
p->have_soft_volume = false;
|
||||
|
||||
remap_volumes(this, &GET_IN_PORT(this, 0)->format);
|
||||
if (port->have_format)
|
||||
remap_volumes(this, &port->format);
|
||||
set_volume(this);
|
||||
}
|
||||
return changed;
|
||||
|
|
Loading…
Reference in a new issue