Commit 10f94bc8 authored by Eddy Verbruggen's avatar Eddy Verbruggen Committed by GitHub

Merge pull request #334 from lucatorella/patch-1

Adding explicit casting
parents 1cdbf871 e23d82dd
......@@ -859,7 +859,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