Make sure the video capture delay is set to an initial value on Mac.
BUG= Review URL: https://webrtc-codereview.appspot.com/719006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2569 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -170,6 +170,7 @@ WebRtc_Word32 VideoCaptureMacQTKit::StartCapture(
|
||||
_captureWidth = capability.width;
|
||||
_captureHeight = capability.height;
|
||||
_captureFrameRate = capability.maxFPS;
|
||||
_captureDelay = 120;
|
||||
|
||||
if(-1 == [[_captureDevice setCaptureHeight:_captureHeight
|
||||
AndWidth:_captureWidth AndFrameRate:_captureFrameRate]intValue])
|
||||
|
@ -165,6 +165,7 @@ WebRtc_Word32 VideoCaptureMacQuickTime::StartCapture(
|
||||
|
||||
_captureCapability.width = capability.width;
|
||||
_captureCapability.height = capability.height;
|
||||
_captureDelay = 120;
|
||||
|
||||
if (VideoCaptureRun() == -1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user