Commit 4500782a by Daniel Dahan

updated variable o to orientation

parent 628219e3
......@@ -359,18 +359,18 @@ public class CaptureSession : NSObject, AVCaptureFileOutputRecordingDelegate {
/// The capture video orientation.
public var videoOrientation: AVCaptureVideoOrientation {
var o: AVCaptureVideoOrientation
var orientation: AVCaptureVideoOrientation
switch UIDevice.currentDevice().orientation {
case .Portrait:
o = .Portrait
orientation = .Portrait
case .LandscapeRight:
o = .LandscapeLeft
orientation = .LandscapeLeft
case .PortraitUpsideDown:
o = .PortraitUpsideDown
orientation = .PortraitUpsideDown
default:
o = .LandscapeRight
orientation = .LandscapeRight
}
return o
return orientation
}
/// A delegation property for CaptureSessionDelegate.
......
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