git: 95c55b7611a0 - main - devel/electron{32,33,34}: fix build with pipewire 1.4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Mar 2025 21:43:43 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=95c55b7611a024d43c10add27d69883577c2be29
commit 95c55b7611a024d43c10add27d69883577c2be29
Author: Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-03-24 21:41:18 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-03-24 21:43:37 +0000
devel/electron{32,33,34}: fix build with pipewire 1.4
Reported by: pkg-fallout
Obtained from: https://cgit.freebsd.org/ports/tree/www/chromium/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
---
...modules_video__capture_linux_pipewire__session.cc | 20 ++++++++++++++++++++
...modules_video__capture_linux_pipewire__session.cc | 20 ++++++++++++++++++++
...modules_video__capture_linux_pipewire__session.cc | 20 ++++++++++++++++++++
3 files changed, 60 insertions(+)
diff --git a/devel/electron32/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc b/devel/electron32/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
new file mode 100644
index 000000000000..3e1ce1d4f5db
--- /dev/null
+++ b/devel/electron32/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
@@ -0,0 +1,20 @@
+--- third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.orig 2024-10-18 12:43:44 UTC
++++ third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
+@@ -72,7 +72,7 @@ PipeWireNode::PipeWireNode(PipeWireSession* session,
+ .param = OnNodeParam,
+ };
+
+- pw_node_add_listener(proxy_, &node_listener_, &node_events, this);
++ pw_node_add_listener(reinterpret_cast<pw_node*>(proxy_), &node_listener_, &node_events, this);
+ }
+
+ PipeWireNode::~PipeWireNode() {
+@@ -107,7 +107,7 @@ void PipeWireNode::OnNodeInfo(void* data, const pw_nod
+ uint32_t id = info->params[i].id;
+ if (id == SPA_PARAM_EnumFormat &&
+ info->params[i].flags & SPA_PARAM_INFO_READ) {
+- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr);
++ pw_node_enum_params(reinterpret_cast<pw_node*>(that->proxy_), 0, id, 0, UINT32_MAX, nullptr);
+ break;
+ }
+ }
diff --git a/devel/electron33/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc b/devel/electron33/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
new file mode 100644
index 000000000000..950652211de0
--- /dev/null
+++ b/devel/electron33/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
@@ -0,0 +1,20 @@
+--- third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.orig 2025-01-06 14:31:29 UTC
++++ third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
+@@ -85,7 +85,7 @@ PipeWireNode::PipeWireNode(PipeWireSession* session,
+ .param = OnNodeParam,
+ };
+
+- pw_node_add_listener(proxy_, &node_listener_, &node_events, this);
++ pw_node_add_listener(reinterpret_cast<pw_node*>(proxy_), &node_listener_, &node_events, this);
+ }
+
+ // static
+@@ -117,7 +117,7 @@ void PipeWireNode::OnNodeInfo(void* data, const pw_nod
+ uint32_t id = info->params[i].id;
+ if (id == SPA_PARAM_EnumFormat &&
+ info->params[i].flags & SPA_PARAM_INFO_READ) {
+- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr);
++ pw_node_enum_params(reinterpret_cast<pw_node*>(that->proxy_), 0, id, 0, UINT32_MAX, nullptr);
+ break;
+ }
+ }
diff --git a/devel/electron34/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc b/devel/electron34/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
new file mode 100644
index 000000000000..f67c32ef0021
--- /dev/null
+++ b/devel/electron34/files/patch-third__party_webrtc_modules_video__capture_linux_pipewire__session.cc
@@ -0,0 +1,20 @@
+--- third_party/webrtc/modules/video_capture/linux/pipewire_session.cc.orig 2025-02-24 19:59:26 UTC
++++ third_party/webrtc/modules/video_capture/linux/pipewire_session.cc
+@@ -87,7 +87,7 @@ PipeWireNode::PipeWireNode(PipeWireSession* session,
+ .param = OnNodeParam,
+ };
+
+- pw_node_add_listener(proxy_, &node_listener_, &node_events, this);
++ pw_node_add_listener(reinterpret_cast<pw_node*>(proxy_), &node_listener_, &node_events, this);
+ }
+
+ // static
+@@ -119,7 +119,7 @@ void PipeWireNode::OnNodeInfo(void* data, const pw_nod
+ uint32_t id = info->params[i].id;
+ if (id == SPA_PARAM_EnumFormat &&
+ info->params[i].flags & SPA_PARAM_INFO_READ) {
+- pw_node_enum_params(that->proxy_, 0, id, 0, UINT32_MAX, nullptr);
++ pw_node_enum_params(reinterpret_cast<pw_node*>(that->proxy_), 0, id, 0, UINT32_MAX, nullptr);
+ break;
+ }
+ }