Fix bug in camera preview layer.
Previously we were setting the property again in it's setter. This is obviously not a great idea. CL 109641 changed ivar accesses in blocks to property accesses and this bug got introduced there. Bug: webrtc:10110, webrtc:10127, webrtc:9971 Change-Id: I01abb0885b3bfc91fb741d82d1ece015ee9d3b58 Reviewed-on: https://webrtc-review.googlesource.com/c/116062 Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26124}
This commit is contained in:
committed by
Commit Bot
parent
3f2b9aad4a
commit
1dfc4d5065
@ -47,10 +47,10 @@
|
||||
if (_captureSession == captureSession) {
|
||||
return;
|
||||
}
|
||||
_captureSession = captureSession;
|
||||
[RTCDispatcher
|
||||
dispatchAsyncOnType:RTCDispatcherTypeMain
|
||||
block:^{
|
||||
self.captureSession = captureSession;
|
||||
AVCaptureVideoPreviewLayer *previewLayer = [self previewLayer];
|
||||
[RTCDispatcher
|
||||
dispatchAsyncOnType:RTCDispatcherTypeCaptureSession
|
||||
|
||||
Reference in New Issue
Block a user