removed tabs
authorAlexander Shishkov <alexander.shishkov@itseez.com>
Mon, 17 Feb 2014 13:37:02 +0000 (17:37 +0400)
committerAlexander Shishkov <alexander.shishkov@itseez.com>
Mon, 17 Feb 2014 13:37:02 +0000 (17:37 +0400)
modules/highgui/src/cap_ios_abstract_camera.mm

index 6675a9d..e5c7072 100644 (file)
     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;
     NSLog(@"[Camera] created AVCaptureVideoPreviewLayer");
 }
 
-
-
-
 - (void)setDesiredCameraPosition:(AVCaptureDevicePosition)desiredPosition;
 {
     for (AVCaptureDevice *device in [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]) {