wireplumber/0004-spa-pod-fix-different-architecture-errors-for-boolea.patch
Antonio Larrosa 23c5d9eadf Accepting request 948445 from home:alarrosa:branches:multimedia:libs
- Back to version 0.4.6, and add patches incrementally
  to bisect it and find the issue
  * 0001-policy-node-fix-typo-when-finding-best-target.patch
  * 0002-policy-node-schedule-a-rescan-without-timeout-if-def.patch
  * 0003-policy-node-find-best-linkable-if-default-one-cannot.patch
  * 0004-spa-pod-fix-different-architecture-errors-for-boolea.patch
  * 0005-config-update-the-endpoints-config.patch
  * 0006-policy-endpoint-client.lua-fix-record-with-endpoints.patch
  * 0007-default-nodes-check-if-the-ports-exist-in-rescan_om.patch
  * 0008-scripts-monitors-log-warning-if-spa-devices-were-not.patch
- Remove revert from previous change:
  * 0001-reversed-default-nodes-check-if-default-node-has-available-ro.patch

OBS-URL: https://build.opensuse.org/request/show/948445
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=24
2022-01-24 16:17:22 +00:00

40 lines
1.1 KiB
Diff

From bc76cb7d74a1eac20cabd99ebb27f749d447d6ca Mon Sep 17 00:00:00 2001
From: Julian Bouzas <julian.bouzas@collabora.com>
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