gh#flatpak/xdg-desktop-portal#1624 . - Removed patch: * fix-pipewire-pw_registry-cast.patch - Added patch: * 0001-Fix-build-with-pipewire-1.3.82.patch OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/xdg-desktop-portal?expand=0&rev=95
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From da7b73b0b0174e9a6dcf706ae64218e822e2c685 Mon Sep 17 00:00:00 2001
|
|
From: Antonio Larrosa <antonio.larrosa@gmail.com>
|
|
Date: Wed, 12 Feb 2025 10:26:08 +0100
|
|
Subject: [PATCH] Fix build with pipewire 1.3.82
|
|
|
|
While submitting pipewire 1.3.82 to openSUSE Tumbleweed I noticed this
|
|
is needed to build xdg-desktop-portal. This was already submitted
|
|
as an issue in #1611 in Debian, in which the reporter doesn't mention the
|
|
used pipewire version but says "I am also building my own pipewire"
|
|
so I guess it's one of the latest RCs (1.3.81 or 1.3.82).
|
|
|
|
Fixes: #1611
|
|
---
|
|
src/pipewire.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/pipewire.c b/src/pipewire.c
|
|
index bc4ec5047..39b05c71c 100644
|
|
--- a/src/pipewire.c
|
|
+++ b/src/pipewire.c
|
|
@@ -331,7 +331,7 @@ pipewire_remote_new_sync (struct pw_properties *pipewire_properties,
|
|
remote->registry = (struct pw_proxy*) pw_core_get_registry (remote->core,
|
|
PW_VERSION_REGISTRY,
|
|
0);
|
|
- pw_registry_add_listener (remote->registry,
|
|
+ pw_registry_add_listener ((struct pw_registry*)remote->registry,
|
|
&remote->registry_listener,
|
|
®istry_events,
|
|
remote);
|