2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Share video capturer between call and settings.

This commit is contained in:
John Preston
2020-08-21 15:49:51 +04:00
parent 4672e3d068
commit 4d2041ae48
5 changed files with 41 additions and 11 deletions

View File

@@ -373,8 +373,7 @@ void Call::setupOutgoingVideo() {
#ifndef DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION
Assert(state == Webrtc::VideoState::Active);
if (!_videoCapture) {
_videoCapture = tgcalls::VideoCaptureInterface::Create(
Core::App().settings().callVideoInputDeviceId().toStdString());
_videoCapture = _delegate->getVideoCapture();
_videoCapture->setOutput(_videoOutgoing->sink());
}
if (_instance) {