From bc76cb7d74a1eac20cabd99ebb27f749d447d6ca Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Mon, 13 Dec 2021 12:01:52 -0500 Subject: [PATCH 04/14] spa-pod: fix different architecture errors for boolean values --- lib/wp/spa-pod.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/wp/spa-pod.c b/lib/wp/spa-pod.c index c1c2257..bd7b887 100644 --- a/lib/wp/spa-pod.c +++ b/lib/wp/spa-pod.c @@ -2332,6 +2332,10 @@ wp_spa_pod_builder_add_valist (WpSpaPodBuilder *self, va_list args) } break; } + case 'b': + spa_pod_builder_bool(&self->builder, + va_arg(args, gboolean) ? true : false); + break; default: SPA_POD_BUILDER_COLLECT(&self->builder, *format, args); break; @@ -2778,6 +2782,10 @@ wp_spa_pod_parser_get_valist (WpSpaPodParser *self, va_list args) } break; } + case 'b': + *va_arg(args, gboolean*) = + SPA_POD_VALUE(struct spa_pod_bool, pod) ? TRUE : FALSE; + break; default: SPA_POD_PARSER_COLLECT (pod, *format, args); break; -- 2.34.1