From 13cb51efbd59706f6637f2dc33082b9d1efafe97 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 15 Dec 2020 16:06:10 +0100 Subject: [PATCH] spa: fix array type info Descend into the type info of the array. Fixes names of channels in position array. --- spa/include/spa/debug/format.h | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/include/spa/debug/format.h b/spa/include/spa/debug/format.h index 12a14a22e..45c09189d 100644 --- a/spa/include/spa/debug/format.h +++ b/spa/include/spa/debug/format.h @@ -91,6 +91,7 @@ spa_debug_format_value(const struct spa_type_info *info, void *p; struct spa_pod_array_body *b = (struct spa_pod_array_body *)body; int i = 0; + info = info && info->values ? info->values : info; fprintf(stderr, "< "); SPA_POD_ARRAY_BODY_FOREACH(b, size, p) { if (i++ > 0)