diff --git a/LFLiveKit/capture/LFVideoCapture.m b/LFLiveKit/capture/LFVideoCapture.m index c14bdf0d..7e42a3f5 100755 --- a/LFLiveKit/capture/LFVideoCapture.m +++ b/LFLiveKit/capture/LFVideoCapture.m @@ -110,6 +110,7 @@ - (UIView *)preView { } - (void)setCaptureDevicePosition:(AVCaptureDevicePosition)captureDevicePosition { + if(captureDevicePosition == self.videoCamera.cameraPosition) return; [self.videoCamera rotateCamera]; self.videoCamera.frameRate = (int32_t)_configuration.videoFrameRate; [self reloadMirror];