From ebc59bc4cf399068cb76ce2b2d08a94f819b9c3b Mon Sep 17 00:00:00 2001 From: chenliming Date: Thu, 10 Nov 2016 18:19:53 +0800 Subject: [PATCH] fix bug https://github.com/LaiFengiOS/LFLiveKit/issues/135 --- LFLiveKit/capture/LFVideoCapture.m | 1 + 1 file changed, 1 insertion(+) 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];