SDL3/12240.patch
Wim Taymans 402509c781 Update to 3.2.4
Add fix for building against PipeWire 1.3.x
  Resolves: RHEL-77078
Update to 3.2.4
Add fix for building against PipeWire 1.3.x
  Resolves: RHEL-77078
Update to 3.2.4
Add fix for building against PipeWire 1.3.x
  Resolves: RHEL-77078
2025-02-13 09:30:50 +01:00

30 lines
1.2 KiB
Diff

From 938fa9648dbb52be412fd71d22c4641139df1294 Mon Sep 17 00:00:00 2001
From: Neal Gompa <neal@gompa.dev>
Date: Mon, 10 Feb 2025 03:43:55 -0500
Subject: [PATCH] pipewire: Ensure that the correct struct is used for
eumeration APIs
PipeWire now requires the correct struct type is used, otherwise
it will fail to compile.
Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f
Fixes: https://github.com/libsdl-org/SDL/issues/12224
---
src/audio/pipewire/SDL_pipewire.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c
index 4e71dd52aa794..dfb5d6cf3eebb 100644
--- a/src/audio/pipewire/SDL_pipewire.c
+++ b/src/audio/pipewire/SDL_pipewire.c
@@ -548,7 +548,7 @@ static void node_event_info(void *object, const struct pw_node_info *info)
// Need to parse the parameters to get the sample rate
for (i = 0; i < info->n_params; ++i) {
- pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL);
+ pw_node_enum_params((struct pw_node*)node->proxy, 0, info->params[i].id, 0, 0, NULL);
}
hotplug_core_sync(node);