Fix build

This commit is contained in:
Ali 2020-07-16 20:57:45 +04:00
parent dce811f80b
commit 69828a0319
4 changed files with 7 additions and 3 deletions

View File

@ -14,6 +14,8 @@ static_library(
"tgcalls/tgcalls/legacy/**",
"tgcalls/tgcalls/platform/tdesktop/**",
"tgcalls/tgcalls/platform/windows/**",
"tgcalls/tgcalls/platform/darwin/VideoCameraCapturerMac.*",
"tgcalls/tgcalls/platform/darwin/VideoMetalViewMac.*",
]),
has_cpp = True,
headers = merge_maps([

View File

@ -15,6 +15,8 @@ objc_library(
"tgcalls/tgcalls/legacy/**",
"tgcalls/tgcalls/platform/tdesktop/**",
"tgcalls/tgcalls/platform/windows/**",
"tgcalls/tgcalls/platform/darwin/VideoCameraCapturerMac.*",
"tgcalls/tgcalls/platform/darwin/VideoMetalViewMac.*",
]),
hdrs = glob([
"PublicHeaders/**/*.h",

View File

@ -61,7 +61,7 @@
- (instancetype _Nonnull)init {
self = [super init];
if (self != nil) {
_interface = tgcalls::CreateVideoCapture();
_interface = tgcalls::VideoCaptureInterface::Create();
}
return self;
}
@ -541,7 +541,7 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
- (void)acceptVideo:(OngoingCallThreadLocalContextVideoCapturer * _Nullable)videoCapturer {
if (_tgVoip && _videoCapturer == nil) {
_videoCapturer = videoCapturer;
_tgVoip->acceptVideo([_videoCapturer getInterface]);
_tgVoip->requestVideo([_videoCapturer getInterface]);
}
}

@ -1 +1 @@
Subproject commit 89f391b1de6fd445b33469a54bf8ea3dca534208
Subproject commit 83c85d20ccdde154acca4b964317de1e695f95d1