telegram-desktop.tg_owt: 0-unstable-2024-10-28 -> 0-unstable-2025-06-02

This commit is contained in:
Tom van Dijk
2025-06-04 23:18:44 +02:00
parent a1e5499e51
commit a1665f4bbb
2 changed files with 3 additions and 29 deletions
@@ -1,20 +0,0 @@
--- a/src/modules/video_capture/linux/pipewire_session.cc
+++ b/src/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_node_info* info) {
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;
}
}
@@ -33,22 +33,16 @@
stdenv.mkDerivation {
pname = "tg_owt";
version = "0-unstable-2024-10-28";
version = "0-unstable-2025-06-02";
src = fetchFromGitHub {
owner = "desktop-app";
repo = "tg_owt";
rev = "8198c4d8b91e22d68eb5c7327fd408e3b6abcc79";
hash = "sha256-3sLa3Px0VWgRYqnnLlwLnx+WWnneqZyhQPrRMBriXQA=";
rev = "62321fd7128ab2650b459d4195781af8185e46b5";
hash = "sha256-l6EdHJLd42TU+4pLakdU3a5PLVxrxjta0CSRy5hVBFU=";
fetchSubmodules = true;
};
patches = [
# Fix build with Pipewire 1.4
# Submitted upstream: https://webrtc-review.googlesource.com/c/src/+/380500
./tg_owt-pipewire-1.4.patch
];
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace src/modules/desktop_capture/linux/wayland/egl_dmabuf.cc \
--replace-fail '"libEGL.so.1"' '"${lib.getLib libGL}/lib/libEGL.so.1"' \