Increase VIDIOC_REQBUFS count from 2 to 4
commit133987bb651125718ea249ddb3215402e1aaa9e1
authorjchuang <jchuang@chromium.org>
Thu, 19 Mar 2015 11:09:46 +0000 (19 04:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Mar 2015 11:10:32 +0000 (19 11:10 +0000)
treed591db58c7448037221468558efc35bdaa0028bd
parentd456d4bf4d9ca693d11e8bed8adf255e7d1449cf
Increase VIDIOC_REQBUFS count from 2 to 4

The original config of 2 buffers is too few. The kernel may be throttled with no
buffer to queue when Chrome doesn't return the buffer in time. Reserve two more
buffers gives Chrome extra 60ms to process incoming frame on a 30fps camera.

BUG=chrome-os-partner:32570
TEST=Check 'uvcvideo: Dropping payload' messages in kernel logs

Review URL: https://codereview.chromium.org/1008343006

Cr-Commit-Position: refs/heads/master@{#321333}
media/video/capture/linux/video_capture_device_linux.cc