mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix video in calls working on tgcalls v2 implementation.
This commit is contained in:
parent
c7678f17ac
commit
bf18907fe6
3 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 823ec7f0f59310ade8344ed74efd36d18ebfb018
|
||||
Subproject commit 0e3f3705ecce37dc83ede0b04180a8cb0830aec3
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue