UBSan fixup

pull/1/head
Michael Kirk 6 years ago
parent 73012d4699
commit d5ebd5a60f

@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readonly) __kindof UIView<RTCVideoRenderer> *videoRenderer;
// Used for legacy EAGLVideoView
@property (nullable, nonatomic) NSMutableArray<NSLayoutConstraint *> *remoteVideoConstraints;
@property (nullable, nonatomic) NSArray<NSLayoutConstraint *> *remoteVideoConstraints;
@end
@ -32,6 +32,8 @@ NS_ASSUME_NONNULL_BEGIN
return self;
}
_remoteVideoConstraints = @[];
// Currently RTC only supports metal on 64bit machines
#if defined(RTC_SUPPORTS_METAL)
// On 64-bit, iOS9+: uses the MetalKit backed view for improved battery/rendering performance.
@ -142,7 +144,7 @@ NS_ASSUME_NONNULL_BEGIN
[constraints addObjectsFromArray:[videoView autoPinEdgesToSuperviewEdges]];
}
self.remoteVideoConstraints = constraints;
self.remoteVideoConstraints = [constraints copy];
// We need to force relayout to occur immediately (and not
// wait for a UIKit layout/render pass) or the remoteVideoView
// (which presumably is updating its CALayer directly) will

Loading…
Cancel
Save