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:
perkj@webrtc.org
2012-08-07 09:03:07 +00:00
parent 9a3f83f2e3
commit 5d6be542be
2 changed files with 2 additions and 0 deletions

View File

@ -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])

View File

@ -165,6 +165,7 @@ WebRtc_Word32 VideoCaptureMacQuickTime::StartCapture(
_captureCapability.width = capability.width;
_captureCapability.height = capability.height;
_captureDelay = 120;
if (VideoCaptureRun() == -1)
{