From 30d9b743a2bf66bdd529821e5827f71cf589698d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 2 Jun 2022 12:44:31 +0200 Subject: [PATCH] acp: return map on success We need to return the channelmap when we have successfully filled it. --- spa/plugins/alsa/acp/channelmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/acp/channelmap.h b/spa/plugins/alsa/acp/channelmap.h index 44284e2f3..daa63cc44 100644 --- a/spa/plugins/alsa/acp/channelmap.h +++ b/spa/plugins/alsa/acp/channelmap.h @@ -186,7 +186,7 @@ static inline pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsign case PA_CHANNEL_MAP_AUX: for (i = 0; i < channels; i++) m->map[i] = PA_CHANNEL_POSITION_AUX0 + (i & 31); - break; + return m; default: break; }