Fix: make sure to call UI APIs from main thread.

Change-Id: I74a54b9d3f445369b66678f97d65b7241d72bead
Bug: webrtc:9223
Reviewed-on: https://webrtc-review.googlesource.com/73702
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Peter Hanspers <peterhanspers@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23104}
This commit is contained in:
Peter Hanspers
2018-05-02 13:07:53 +02:00
committed by Commit Bot
parent 97e349ace7
commit a1f566b28a

View File

@ -124,7 +124,11 @@
- (void)appClient:(ARDAppClient *)client
didReceiveRemoteVideoTrack:(RTCVideoTrack *)remoteVideoTrack {
self.remoteVideoTrack = remoteVideoTrack;
_videoCallView.statusLabel.hidden = YES;
__weak ARDVideoCallViewController *weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
ARDVideoCallViewController *strongSelf = weakSelf;
strongSelf.videoCallView.statusLabel.hidden = YES;
});
}
- (void)appClient:(ARDAppClient *)client