diff --git a/Sources/LiveKit/Track/Capturers/CameraCapturer.swift b/Sources/LiveKit/Track/Capturers/CameraCapturer.swift index 4ab1ef278..d4d84550d 100644 --- a/Sources/LiveKit/Track/Capturers/CameraCapturer.swift +++ b/Sources/LiveKit/Track/Capturers/CameraCapturer.swift @@ -97,12 +97,12 @@ public class CameraCapturer: VideoCapturer { public var captureSession: AVCaptureSession { #if os(iOS) if AVCaptureMultiCamSession.isMultiCamSupported { - Self._multiCamSession + return Self._multiCamSession } else { - AVCaptureSession() + return AVCaptureSession() } #else - AVCaptureSession() + return AVCaptureSession() #endif }