Fix video slow to appear on first launch.

BUG=webrtc:7777

Review-Url: https://codereview.webrtc.org/3006453002
Cr-Commit-Position: refs/heads/master@{#19497}
This commit is contained in:
jtteh
2017-08-24 07:14:35 -07:00
committed by Commit Bot
parent 0860bee402
commit 837adc0871

View File

@ -141,8 +141,8 @@ static inline BOOL IsMediaSubTypeSupported(FourCharCode mediaSubType) {
}
[self reconfigureCaptureSessionInput];
[self updateOrientation];
[_captureSession startRunning];
[self updateDeviceCaptureFormat:format fps:fps];
[_captureSession startRunning];
[_currentDevice unlockForConfiguration];
_isRunning = YES;
}];