mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -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;
|
ss->channels = info.info.raw.channels;
|
||||||
}
|
}
|
||||||
if (map) {
|
if (map) {
|
||||||
map->channels = info.info.raw.channels;
|
if (info.info.raw.channels) {
|
||||||
for (i = 0; i < map->channels; i++)
|
map->channels = info.info.raw.channels;
|
||||||
map->map[i] = info.info.raw.position[i];
|
for (i = 0; i < map->channels; i++)
|
||||||
|
map->map[i] = info.info.raw.position[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue