From 66a1bf36295eaa20a9679d75a75d70cd05830359 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 7 May 2021 19:40:38 +0400 Subject: [PATCH] Update tgcalls --- .../TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm | 7 +++++-- submodules/TgVoipWebrtc/tgcalls | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm index 936878d38d..ec68c893c5 100644 --- a/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm +++ b/submodules/TgVoipWebrtc/Sources/OngoingCallThreadLocalContext.mm @@ -243,7 +243,10 @@ tgcalls::VideoCaptureInterfaceObject *GetVideoCaptureAssumingSameThread(tgcalls: } -(void)setOnFatalError:(dispatch_block_t _Nullable)onError { +#if TARGET_OS_IOS +#else _interface->setOnFatalError(onError); +#endif } - (void)makeOutgoingVideoView:(void (^_Nonnull)(UIView * _Nullable))completion { @@ -967,8 +970,8 @@ private: } std::vector videoCodecPreferences; - //videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP8); - videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP9); + videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP8); + //videoCodecPreferences.push_back(tgcalls::VideoCodecName::VP9); int minOutgoingVideoBitrateKbit = 100; #if DEBUG diff --git a/submodules/TgVoipWebrtc/tgcalls b/submodules/TgVoipWebrtc/tgcalls index 94a9c7b4e4..bffd2b4131 160000 --- a/submodules/TgVoipWebrtc/tgcalls +++ b/submodules/TgVoipWebrtc/tgcalls @@ -1 +1 @@ -Subproject commit 94a9c7b4e49c943d1ca108e35779739ad99d695a +Subproject commit bffd2b41310e773ef4d7560fbf6703e5fefb6020