From c8c89f7517e6cfb81a2029868c0d0f443e023134 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 12 Nov 2024 11:54:22 +0100 Subject: [PATCH] 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 e2991f6398625059538e4d99d6b0553d3a0f5968 --- src/modules/module-protocol-pulse/format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-protocol-pulse/format.c b/src/modules/module-protocol-pulse/format.c index bdf139273..388e8ce49 100644 --- a/src/modules/module-protocol-pulse/format.c +++ b/src/modules/module-protocol-pulse/format.c @@ -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)