             
             for input in inputs {
                 if let deviceInput = input as? AVCaptureDeviceInput {
-                    if deviceInput.device == backCameraDevice && cameraDevice == .front {
-                        validCaptureSession.removeInput(deviceInput)
-                        break;
-                    } else if deviceInput.device == frontCameraDevice && cameraDevice == .back {
-                        validCaptureSession.removeInput(deviceInput)
-                        break;
-                    }
-                }
-            }
+                    validCaptureSession.removeInput(deviceInput)
+                }
+            }
+            
             switch cameraDevice {
             case .front:
                 if hasFrontCamera {

    fileprivate var beginZoomScale  = CGFloat(1.0)
    fileprivate var maxZoomScale    = CGFloat(1.0)
    
    fileprivate var tempFilePath: URL = {
        let tempURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("tempMovie").appendingPathExtension("mp4")
        let tempPath = tempURL.absoluteString
        if FileManager.default.fileExists(atPath: tempPath) {
            do {
                try FileManager.default.removeItem(atPath: tempPath)
            } catch { }
        }
        return tempURL
    }()
    
    
    // MARK: - CameraManager

    
    // MARK: - CameraManager()
    
    fileprivate func _executeVideoCompletionWithURL(_ url: URL?, error: NSError?) {
        if let validCompletion = videoCompletion {
            validCompletion(url, error)
