Skip to content
Snippets Groups Projects
Verified Commit fb38c4a1 authored by Vasyl Gello's avatar Vasyl Gello
Browse files

Add workaround for pipewire 1.4.0 (Closes: #1100094, #1100691)

parent cbdbb710
No related branches found
No related tags found
No related merge requests found
...@@ -24,3 +24,4 @@ workarounds/0001-Workaround-989814.patch ...@@ -24,3 +24,4 @@ workarounds/0001-Workaround-989814.patch
workarounds/0002-xbmc-libdvd_vfs-enen92.patch workarounds/0002-xbmc-libdvd_vfs-enen92.patch
workarounds/0003-pcre2.patch workarounds/0003-pcre2.patch
workarounds/0004-ffmpeg7.patch workarounds/0004-ffmpeg7.patch
workarounds/0005-PR26527.patch
From e23a105b8988aba9b8401493bf6031a6878bd435 Mon Sep 17 00:00:00 2001
From: Timo Gurr <timo.gurr@gmail.com>
Date: Fri, 7 Mar 2025 13:30:47 +0100
Subject: [PATCH] [AudioEngine] PipeWire: Fix build with PipeWire 1.4.0
PipeWire >= 1.4.0 requires the correct struct type to be used, otherwise
it will fail to compile.
Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f
(cherry picked from commit 269053ebbfd3cc4a3156a511f54ab7f08a09a730)
---
xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp b/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
index bbb4cd9c31746..14d7dcce6d8dc 100644
--- a/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
@@ -40,7 +40,8 @@ void CPipewireNode::EnumerateFormats()
for (uint32_t param = 0; param < m_info->n_params; param++)
{
if (m_info->params[param].id == SPA_PARAM_EnumFormat)
- pw_node_enum_params(m_proxy.get(), 0, m_info->params[param].id, 0, 0, NULL);
+ pw_node_enum_params(reinterpret_cast<struct pw_node*>(m_proxy.get()), 0,
+ m_info->params[param].id, 0, 0, NULL);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment