git: 683f6abb3eef - main - net-im/tg_owt: fix screen sharing crash issue

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Mon, 02 Dec 2024 15:05:31 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=683f6abb3eef6268f3070ab7e7e6a48d03bbe959

commit 683f6abb3eef6268f3070ab7e7e6a48d03bbe959
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2024-12-02 15:02:14 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2024-12-02 15:03:52 +0000

    net-im/tg_owt: fix screen sharing crash issue
    
    While I'm here regenerate another patch.
    
    Bump PORTREVISION.
    
    PR:     267461
---
 net-im/tg_owt/Makefile                                        |  1 +
 .../patch-src_modules_audio__device_audio__device__impl.cc    | 11 +++++++++++
 net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc   |  4 ++--
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/net-im/tg_owt/Makefile b/net-im/tg_owt/Makefile
index 3b772bbbeef0..b5b3a008645a 100644
--- a/net-im/tg_owt/Makefile
+++ b/net-im/tg_owt/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	tg_owt
 PORTVERSION=	0.0.20241116
+PORTREVISION=	1
 CATEGORIES=	net-im
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/net-im/tg_owt/files/patch-src_modules_audio__device_audio__device__impl.cc b/net-im/tg_owt/files/patch-src_modules_audio__device_audio__device__impl.cc
new file mode 100644
index 000000000000..798487e3a4a2
--- /dev/null
+++ b/net-im/tg_owt/files/patch-src_modules_audio__device_audio__device__impl.cc
@@ -0,0 +1,11 @@
+--- src/modules/audio_device/audio_device_impl.cc.orig	2024-12-02 05:33:43 UTC
++++ src/modules/audio_device/audio_device_impl.cc
+@@ -141,7 +141,7 @@ int32_t AudioDeviceModuleImpl::CheckPlatform() {
+ #elif defined(WEBRTC_ANDROID)
+   platform = kPlatformAndroid;
+   RTC_LOG(LS_INFO) << "current platform is Android";
+-#elif defined(WEBRTC_LINUX)
++#elif defined(WEBRTC_LINUX) || defined(WEBRTC_FREEBSD)
+   platform = kPlatformLinux;
+   RTC_LOG(LS_INFO) << "current platform is Linux";
+ #elif defined(WEBRTC_IOS)
diff --git a/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc b/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc
index 0f4becf9578a..7fced0de2d87 100644
--- a/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc
+++ b/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc
@@ -1,6 +1,6 @@
---- src/rtc_base/openssl_adapter.cc.orig	2023-06-08 13:40:19 UTC
+--- src/rtc_base/openssl_adapter.cc.orig	2024-11-16 05:27:29 UTC
 +++ src/rtc_base/openssl_adapter.cc
-@@ -192,7 +192,9 @@ bool OpenSSLAdapter::InitializeSSL() {
+@@ -176,7 +176,9 @@ bool OpenSSLAdapter::InitializeSSL() {
    // Loading the error strings crashes mac_asan.  Omit this debugging aid there.
    SSL_load_error_strings();
  #endif