Commit 57638a7d authored by Jean-François Geyelin's avatar Jean-François Geyelin Committed by Commit Bot

[iOS] Move access to |statusBarOrientation| to the main thread.

Error found because XCode 9 now runs apps with a
"Main Thread Checker" that detects invalid use of UIKit from a background thread.

Bug: None
Change-Id: I16b159b9dcb0710a37faa66c773063e5b97ae84f
Reviewed-on: https://chromium-review.googlesource.com/723462Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Jean-François Geyelin <jif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509385}
parent ad90070a
...@@ -247,8 +247,8 @@ ...@@ -247,8 +247,8 @@
[previewLayer setSession:_captureSession]; [previewLayer setSession:_captureSession];
[previewLayer setVideoGravity:AVLayerVideoGravityResizeAspectFill]; [previewLayer setVideoGravity:AVLayerVideoGravityResizeAspectFill];
[self resetVideoOrientation:previewLayer];
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[self resetVideoOrientation:previewLayer];
[_delegate captureSessionIsConnected]; [_delegate captureSessionIsConnected];
[self startRecording]; [self startRecording];
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment