Support updated tgcalls

This commit is contained in:
Ali 2021-03-11 20:45:33 +04:00
parent d22703638d
commit b2670425d4
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@
#import "Instance.h" #import "Instance.h"
#import "InstanceImpl.h" #import "InstanceImpl.h"
#import "reference/InstanceImplReference.h" #import "reference/InstanceImplReference.h"
#include "StaticThreads.h"
#import "VideoCaptureInterface.h" #import "VideoCaptureInterface.h"
@ -158,7 +159,7 @@
if (keepLandscape) { if (keepLandscape) {
resolvedId += std::string(":landscape"); resolvedId += std::string(":landscape");
} }
_interface = tgcalls::VideoCaptureInterface::Create(resolvedId); _interface = tgcalls::VideoCaptureInterface::Create(tgcalls::StaticThreads::getThreads(), resolvedId);
} }
return self; return self;
} }
@ -863,6 +864,7 @@ private:
__weak GroupCallThreadLocalContext *weakSelf = self; __weak GroupCallThreadLocalContext *weakSelf = self;
_instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){ _instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){
.threads = tgcalls::StaticThreads::getThreads(),
.networkStateUpdated = [weakSelf, queue, networkStateUpdated](tgcalls::GroupNetworkState networkState) { .networkStateUpdated = [weakSelf, queue, networkStateUpdated](tgcalls::GroupNetworkState networkState) {
[queue dispatch:^{ [queue dispatch:^{
__strong GroupCallThreadLocalContext *strongSelf = weakSelf; __strong GroupCallThreadLocalContext *strongSelf = weakSelf;

@ -1 +1 @@
Subproject commit 943d24ab5c86d2e4d739e82234b4d14210433ca0 Subproject commit 4a953747375b8648f8b66e9572b59b10f7b769a1