diff --git a/Telegram/SourceFiles/calls/calls_call.cpp b/Telegram/SourceFiles/calls/calls_call.cpp index 10df62e48a..a38203ff62 100644 --- a/Telegram/SourceFiles/calls/calls_call.cpp +++ b/Telegram/SourceFiles/calls/calls_call.cpp @@ -38,7 +38,6 @@ namespace tgcalls { class InstanceImpl; class InstanceV2Impl; class InstanceImplLegacy; -class InstanceImplReference; void SetLegacyGlobalServerConfig(const std::string &serverConfig); } // namespace tgcalls @@ -388,12 +387,15 @@ void Call::setupOutgoingVideo() { _videoCaptureIsScreencast); _videoCapture->setOutput(_videoOutgoing->sink()); } + _videoCapture->setState(tgcalls::VideoState::Active); if (_instance) { _instance->setVideoCapture(_videoCapture); } - _videoCapture->setState(tgcalls::VideoState::Active); } else if (_videoCapture) { _videoCapture->setState(tgcalls::VideoState::Inactive); + if (_instance) { + _instance->setVideoCapture(nullptr); + } } }, _lifetime); } diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 823ec7f0f5..0e3f3705ec 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 823ec7f0f59310ade8344ed74efd36d18ebfb018 +Subproject commit 0e3f3705ecce37dc83ede0b04180a8cb0830aec3 diff --git a/Telegram/cmake/lib_tgcalls.cmake b/Telegram/cmake/lib_tgcalls.cmake index 91dbc4ca09..bfb962d6ea 100644 --- a/Telegram/cmake/lib_tgcalls.cmake +++ b/Telegram/cmake/lib_tgcalls.cmake @@ -160,10 +160,6 @@ PRIVATE platform/tdesktop/VideoCameraCapturer.cpp platform/tdesktop/VideoCameraCapturer.h - # All - reference/InstanceImplReference.cpp - reference/InstanceImplReference.h - # third-party third-party/json11.cpp third-party/json11.hpp