diff --git a/0001-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch b/0001-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch new file mode 100644 index 0000000..78f83b9 --- /dev/null +++ b/0001-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch @@ -0,0 +1,32 @@ +From d35bef64e913dd7d5dd3153a4b61f10ef837dad6 Mon Sep 17 00:00:00 2001 +From: Neal Gompa +Date: Mon, 10 Feb 2025 05:00:56 -0500 +Subject: [PATCH] pipewire: Ensure that the correct struct is used for + enumeration 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 4e71dd52a..dfb5d6cf3 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); +-- +2.48.1 + diff --git a/SDL3.changes b/SDL3.changes index 015dfb9..f53e3a9 100644 --- a/SDL3.changes +++ b/SDL3.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 25 16:16:00 UTC 2025 - Jan Engelhardt + +- Add 0001-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch + for pipewire-1.3.x + ------------------------------------------------------------------- Fri Feb 7 09:00:53 UTC 2025 - Jan Engelhardt diff --git a/SDL3.spec b/SDL3.spec index 0b4416a..923de9a 100644 --- a/SDL3.spec +++ b/SDL3.spec @@ -30,6 +30,7 @@ Source: https://github.com/libsdl-org/SDL/releases/download/release-%ver Source2: https://github.com/libsdl-org/SDL/releases/download/release-%version/SDL3-%version.tar.gz.sig Source3: %name.keyring Source4: baselibs.conf +Patch1: 0001-pipewire-Ensure-that-the-correct-struct-is-used-for-.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libdecor-devel diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index df45c4d..14a4a3a 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1738919362 -commit: f6312c616b57d5f652c30f7fa993dc7018c789331222823f5783b9f39d425d69 +mtime: 1740501884 +commit: 0b63c8441574f5a395c729e97f2229eef8f997b768db702fdca19337e6ec4e44 url: https://src.opensuse.org/jengelh/SDL3 revision: master