add tg_owt patch fix

This commit is contained in:
Jay
2025-11-02 02:54:21 +08:00
parent 34568ca380
commit 232c4229c3
14 changed files with 680 additions and 0 deletions
@@ -0,0 +1,23 @@
Bug: https://github.com/desktop-app/tg_owt/issues/148
Upstream pull request: https://github.com/desktop-app/tg_owt/pull/149/files
--- a/src/modules/video_capture/linux/pipewire_session.cc
+++ b/src/modules/video_capture/linux/pipewire_session.cc
@@ -60,7 +60,7 @@
.param = OnNodeParam,
};
- pw_node_add_listener(proxy_, &node_listener_, &node_events, this);
+ pw_node_add_listener(reinterpret_cast<struct pw_node*>(proxy_), &node_listener_, &node_events, this);
}
PipeWireNode::~PipeWireNode() {
@@ -94,7 +94,7 @@
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<struct pw_node*>(that->proxy_), 0, id, 0, UINT32_MAX, nullptr);
break;
}
}
@@ -0,0 +1,30 @@
https://github.com/desktop-app/tg_owt/pull/162
From c6ffc8aefb8520a51234c380cc415dd21469cf6b Mon Sep 17 00:00:00 2001
From: Yao Zi <ziyao@disroot.org>
Date: Mon, 12 May 2025 09:05:30 +0000
Subject: [PATCH] Remove ABSL_ATTRIBUTE_LIFETIME_BOUND from void functions
LLVM 20 errors on void functions whose parameters are applied
[[lifetimebound]].
Link: https://github.com/llvm/llvm-project/pull/113460
---
src/api/candidate.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/candidate.h b/src/api/candidate.h
index 0aa75aa..715761a 100644
--- a/src/api/candidate.h
+++ b/src/api/candidate.h
@@ -105,7 +105,7 @@ class RTC_EXPORT Candidate {
// cricket::LOCAL_PORT_TYPE). The type should really be an enum rather than a
// string, but until we make that change the lifetime attribute helps us lock
// things down. See also the `Port` class.
- void set_type(absl::string_view type ABSL_ATTRIBUTE_LIFETIME_BOUND) {
+ void set_type(absl::string_view type) {
Assign(type_, type);
}
--
2.49.0
@@ -0,0 +1,26 @@
https://github.com/desktop-app/tg_owt/pull/161
From: Brahmajit Das <listout@listout.xyz>
Date: Fri, 27 Jun 2025 04:01:15 +0530
Subject: [PATCH 1/1] Fix building with GCC 16
Building with GCC 16 results in the follwing build error:
/var/tmp/portage/media-libs/tg_owt-0_pre20250515/work/tg_owt-232ec410502e773024e8d83cfae83a52203306c0/src/video/stats_counter.h:116:28: error: uint32_t has not been declared
116 | void Set(int64_t sample, uint32_t stream_id);
| ^~~~~~~~
Downstream-bug: https://bugs.gentoo.org/958600
Signed-off-by: Brahmajit Das <listout@listout.xyz>
--- a/src/video/stats_counter.h
+++ b/src/video/stats_counter.h
@@ -13,6 +13,7 @@
#include <memory>
#include <string>
+#include <cstdint>
namespace webrtc {
--
2.50.0
@@ -0,0 +1,23 @@
--- a/src/api/scoped_refptr.h 2025-05-15 18:16:02.000000000 +0800
+++ b/src/api/scoped_refptr.h 2025-11-02 02:44:14.976765731 +0800
@@ -66,6 +66,20 @@
#include <memory>
#include <utility>
+#include "absl/base/nullability.h"
+
+namespace absl {
+#ifdef absl_nonnull
+template<typename T>
+using Nonnull = T absl_nonnull;
+#endif // absl_nonnull
+
+#ifdef absl_nullable
+template<typename T>
+using Nullable = T absl_nullable;
+#endif // absl_nullable
+}
+
namespace webrtc {
template <class T>