Commit e23d82dd authored by Luca Torella's avatar Luca Torella Committed by GitHub

Adding explicit casting

If you have stricter compiler flags then this is required to avoid the error "Assigning to 'AVCaptureVideoOrientation' from incompatible type 'UIInterfaceOrientation'"
parent df54d51c
......@@ -896,7 +896,7 @@ parentViewController:(UIViewController*)parentViewController
- (void)viewWillAppear:(BOOL)animated {
// set video orientation to what the camera sees
self.processor.previewLayer.connection.videoOrientation = [[UIApplication sharedApplication] statusBarOrientation];
self.processor.previewLayer.connection.videoOrientation = (AVCaptureVideoOrientation)[[UIApplication sharedApplication] statusBarOrientation];
// this fixes the bug when the statusbar is landscape, and the preview layer
// starts up in portrait (not filling the whole view)
......
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