commit f96a829ccd8124177a0a23a61c236fdcfb587342
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Mon Aug 27 15:10:34 2018 +0200
Added upstream patch with proxy fix.
libtgvoip-proxy-fix.patch | 33 +++++++++++++++++++++++++++++++++
libtgvoip.spec | 6 +++++-
2 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/libtgvoip-proxy-fix.patch b/libtgvoip-proxy-fix.patch
new file mode 100644
index 0000000..168f916
--- /dev/null
+++ b/libtgvoip-proxy-fix.patch
@@ -0,0 +1,33 @@
+From bfa1e6ab76a467c6c6bff7eabb7c213acc7a1b34 Mon Sep 17 00:00:00 2001
+From: Grishka <grishka93(a)gmail.com>
+Date: Mon, 27 Aug 2018 14:39:27 +0300
+Subject: [PATCH] Proxy fix
+
+---
+ VoIPController.cpp | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/VoIPController.cpp b/VoIPController.cpp
+index 567de25..b82899e 100644
+--- a/VoIPController.cpp
++++ b/VoIPController.cpp
+@@ -223,6 +223,10 @@ VoIPController::VoIPController() : activeNetItfName(""),
+ machTimestart=0;
+ #endif
+
++ sendQueue->SetOverflowCallback([](PendingOutgoingPacket p){
++ LOGW("Dropping outgoing packet (type %d seq %d) from queue", p.type,
p.seq);
++ });
++
+ shared_ptr<Stream> stm=make_shared<Stream>();
+ stm->id=1;
+ stm->type=STREAM_TYPE_AUDIO;
+@@ -762,7 +766,7 @@ void VoIPController::RunRecvThread(void* arg){
+
+ vector<NetworkSocket*> readSockets;
+ vector<NetworkSocket*> errorSockets;
+- readSockets.push_back(realUdpSocket);
++ readSockets.push_back(udpSocket);
+ errorSockets.push_back(realUdpSocket);
+
+ {
diff --git a/libtgvoip.spec b/libtgvoip.spec
index 1bcb9f8..0b9dba0 100644
--- a/libtgvoip.spec
+++ b/libtgvoip.spec
@@ -1,6 +1,6 @@
Name: libtgvoip
Version: 2.2.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: VoIP library for Telegram clients
# Libtgvoip shared library - Public Domain.
@@ -13,6 +13,7 @@ Patch0: %{name}-build-fixes.patch
# Temporary backported from upstream patches.
Patch100: %{name}-add-missing-headers.patch
+Patch101: %{name}-proxy-fix.patch
Provides: bundled(webrtc-audio-processing) = 0.3
BuildRequires: pulseaudio-libs-devel
@@ -68,6 +69,9 @@ find audio -maxdepth 1 -type f -name "*.h" -exec install -m
0644 -p '{}' %{build
%{_libdir}/%{name}.so
%changelog
+* Mon Aug 27 2018 Vitaly Zaitsev <vitaly(a)easycoding.org> - 2.2.3-2
+- Added upstream patch with proxy fix.
+
* Fri Aug 24 2018 Vitaly Zaitsev <vitaly(a)easycoding.org> - 2.2.3-1
- Updated to 2.2.3 (regular release).
Show replies by date