From edbec5d4bab34b0d5810b9788add57c0267ac1ab Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 24 Nov 2020 09:49:35 +0100 Subject: [PATCH] pulse-server: fix channel map lookup --- src/modules/module-protocol-pulse/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/format.c b/src/modules/module-protocol-pulse/format.c index 2071051bc..9134385cb 100644 --- a/src/modules/module-protocol-pulse/format.c +++ b/src/modules/module-protocol-pulse/format.c @@ -305,7 +305,7 @@ static inline uint32_t channel_name2id(const char *name) { int i; for (i = 0; spa_type_audio_channel[i].name; i++) { - if (strcmp(name, spa_type_audio_channel[i].name) == 0) + if (strcmp(name, spa_debug_type_short_name(spa_type_audio_channel[i].name)) == 0) return spa_type_audio_channel[i].type; } return SPA_AUDIO_CHANNEL_UNKNOWN;