mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse: also set channels in the map
When converting a position to a channel-map, copy the number of channels
as well.
This broke with commit e2991f6398
This commit is contained in:
parent
22f7a1de28
commit
c8c89f7517
1 changed files with 1 additions and 0 deletions
|
|
@ -340,6 +340,7 @@ void positions_to_channel_map(const uint32_t *pos, uint32_t channels, struct cha
|
|||
uint32_t i;
|
||||
for (i = 0; i < channels; i++)
|
||||
map->map[i] = pos[i];
|
||||
map->channels = channels;
|
||||
}
|
||||
|
||||
void channel_map_parse(const char *str, struct channel_map *map)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue