Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /modules/highgui/src/cap_ios_abstract_camera.mm [9a98cd] .. [cc529d] Maximize Restore

  Switch to side-by-side view

--- a/modules/highgui/src/cap_ios_abstract_camera.mm
+++ b/modules/highgui/src/cap_ios_abstract_camera.mm
@@ -279,20 +279,20 @@
     self.captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:self.captureSession];
 
     if ([self.captureVideoPreviewLayer respondsToSelector:@selector(connection)])
-	{
-		if ([self.captureVideoPreviewLayer.connection isVideoOrientationSupported])
-		{
-			[self.captureVideoPreviewLayer.connection setVideoOrientation:self.defaultAVCaptureVideoOrientation];
-		}
-	}
-	else
-	{
-		// Deprecated in 6.0; here for backward compatibility
-		if ([self.captureVideoPreviewLayer isOrientationSupported])
-		{
-			[self.captureVideoPreviewLayer setOrientation:self.defaultAVCaptureVideoOrientation];
-		}                
-	}
+    {
+        if ([self.captureVideoPreviewLayer.connection isVideoOrientationSupported])
+        {
+            [self.captureVideoPreviewLayer.connection setVideoOrientation:self.defaultAVCaptureVideoOrientation];
+        }
+    }
+    else
+    {
+        // Deprecated in 6.0; here for backward compatibility
+        if ([self.captureVideoPreviewLayer isOrientationSupported])
+        {
+            [self.captureVideoPreviewLayer setOrientation:self.defaultAVCaptureVideoOrientation];
+        }                
+    }
 
     if (parentView != nil) {
         self.captureVideoPreviewLayer.frame = self.parentView.bounds;
@@ -301,9 +301,6 @@
     }
     NSLog(@"[Camera] created AVCaptureVideoPreviewLayer");
 }
-
-
-
 
 - (void)setDesiredCameraPosition:(AVCaptureDevicePosition)desiredPosition;
 {