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:
Wim Taymans 2024-11-12 11:54:22 +01:00
parent 22f7a1de28
commit c8c89f7517

View file

@ -340,6 +340,7 @@ void positions_to_channel_map(const uint32_t *pos, uint32_t channels, struct cha
uint32_t i; uint32_t i;
for (i = 0; i < channels; i++) for (i = 0; i < channels; i++)
map->map[i] = pos[i]; map->map[i] = pos[i];
map->channels = channels;
} }
void channel_map_parse(const char *str, struct channel_map *map) void channel_map_parse(const char *str, struct channel_map *map)