mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: don't update channels when unset
This commit is contained in:
parent
e63dee6075
commit
33607f769c
1 changed files with 5 additions and 3 deletions
|
|
@ -493,9 +493,11 @@ int format_parse_param(const struct spa_pod *param, struct sample_spec *ss, stru
|
|||
ss->channels = info.info.raw.channels;
|
||||
}
|
||||
if (map) {
|
||||
map->channels = info.info.raw.channels;
|
||||
for (i = 0; i < map->channels; i++)
|
||||
map->map[i] = info.info.raw.position[i];
|
||||
if (info.info.raw.channels) {
|
||||
map->channels = info.info.raw.channels;
|
||||
for (i = 0; i < map->channels; i++)
|
||||
map->map[i] = info.info.raw.position[i];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue