aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2022-08-15 09:13:55 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2022-08-21 16:54:58 +0000
commit39dce0e63898092d93f1db6ee4850bef90673b76 (patch)
tree8ba83d7e2080afe762c5a21c7c313c01d2e35be7
parent021c28353c05e6a1af27e3b9a25b197e17f6bb35 (diff)
downloadports-39dce0e63898092d93f1db6ee4850bef90673b76.tar.gz
ports-39dce0e63898092d93f1db6ee4850bef90673b76.zip
net-im/dino: fix crash on call
PR: 265850
-rw-r--r--net-im/dino/Makefile2
-rw-r--r--net-im/dino/files/patch-libdino_src_service_call__peer__state.vala14
2 files changed, 15 insertions, 1 deletions
diff --git a/net-im/dino/Makefile b/net-im/dino/Makefile
index 9b714f8fa095..52bbca287a6b 100644
--- a/net-im/dino/Makefile
+++ b/net-im/dino/Makefile
@@ -1,7 +1,7 @@
PORTNAME= dino
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net-im
MAINTAINER= ashish@FreeBSD.org
diff --git a/net-im/dino/files/patch-libdino_src_service_call__peer__state.vala b/net-im/dino/files/patch-libdino_src_service_call__peer__state.vala
new file mode 100644
index 000000000000..f07a18f02c82
--- /dev/null
+++ b/net-im/dino/files/patch-libdino_src_service_call__peer__state.vala
@@ -0,0 +1,14 @@
+--- libdino/src/service/call_peer_state.vala 2022-02-13 00:18:06.000000000 +0300
++++ libdino/src/service/call_peer_state.vala 2022-08-15 12:07:56.735765000 +0300
+@@ -45,7 +45,10 @@
+ this.stream_interactor = stream_interactor;
+ this.calls = stream_interactor.get_module(Calls.IDENTITY);
+
+- var session_info_type = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY).session_info_type;
++ Xep.JingleRtp.Module jinglertp_module = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY);
++ if (jinglertp_module == null) return;
++
++ var session_info_type = jinglertp_module.session_info_type;
+ session_info_type.mute_update_received.connect((session,mute, name) => {
+ if (this.sid != session.sid) return;
+