mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix video in calls working on tgcalls v2 implementation.
This commit is contained in:
@@ -38,7 +38,6 @@ namespace tgcalls {
|
|||||||
class InstanceImpl;
|
class InstanceImpl;
|
||||||
class InstanceV2Impl;
|
class InstanceV2Impl;
|
||||||
class InstanceImplLegacy;
|
class InstanceImplLegacy;
|
||||||
class InstanceImplReference;
|
|
||||||
void SetLegacyGlobalServerConfig(const std::string &serverConfig);
|
void SetLegacyGlobalServerConfig(const std::string &serverConfig);
|
||||||
} // namespace tgcalls
|
} // namespace tgcalls
|
||||||
|
|
||||||
@@ -388,12 +387,15 @@ void Call::setupOutgoingVideo() {
|
|||||||
_videoCaptureIsScreencast);
|
_videoCaptureIsScreencast);
|
||||||
_videoCapture->setOutput(_videoOutgoing->sink());
|
_videoCapture->setOutput(_videoOutgoing->sink());
|
||||||
}
|
}
|
||||||
|
_videoCapture->setState(tgcalls::VideoState::Active);
|
||||||
if (_instance) {
|
if (_instance) {
|
||||||
_instance->setVideoCapture(_videoCapture);
|
_instance->setVideoCapture(_videoCapture);
|
||||||
}
|
}
|
||||||
_videoCapture->setState(tgcalls::VideoState::Active);
|
|
||||||
} else if (_videoCapture) {
|
} else if (_videoCapture) {
|
||||||
_videoCapture->setState(tgcalls::VideoState::Inactive);
|
_videoCapture->setState(tgcalls::VideoState::Inactive);
|
||||||
|
if (_instance) {
|
||||||
|
_instance->setVideoCapture(nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, _lifetime);
|
}, _lifetime);
|
||||||
}
|
}
|
||||||
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
Submodule Telegram/ThirdParty/tgcalls updated: 823ec7f0f5...0e3f3705ec
@@ -160,10 +160,6 @@ PRIVATE
|
|||||||
platform/tdesktop/VideoCameraCapturer.cpp
|
platform/tdesktop/VideoCameraCapturer.cpp
|
||||||
platform/tdesktop/VideoCameraCapturer.h
|
platform/tdesktop/VideoCameraCapturer.h
|
||||||
|
|
||||||
# All
|
|
||||||
reference/InstanceImplReference.cpp
|
|
||||||
reference/InstanceImplReference.h
|
|
||||||
|
|
||||||
# third-party
|
# third-party
|
||||||
third-party/json11.cpp
|
third-party/json11.cpp
|
||||||
third-party/json11.hpp
|
third-party/json11.hpp
|
||||||
|
Reference in New Issue
Block a user