Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: media/video/capture/linux/video_capture_device_linux.cc

Issue 1008343006: Increase VIDIOC_REQBUFS count from 2 to 4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/linux/video_capture_device_linux.cc
diff --git a/media/video/capture/linux/video_capture_device_linux.cc b/media/video/capture/linux/video_capture_device_linux.cc
index 60d8f77d55cfe0497fe3835cdfe76f6016ff037a..341b7ec7698acb5fe7eee511308ffcb93b0c4f2e 100644
--- a/media/video/capture/linux/video_capture_device_linux.cc
+++ b/media/video/capture/linux/video_capture_device_linux.cc
@@ -29,7 +29,7 @@ namespace media {
#define GET_V4L2_FOURCC_CHAR(a, index) ((char)( ((a) >> (8 * index)) & 0xff))
// Max number of video buffers VideoCaptureDeviceLinux can allocate.
-const uint32 kMaxVideoBuffers = 2;
+const uint32 kMaxVideoBuffers = 4;
Pawel Osciak 2015/03/18 11:17:02 s/kMaxVideoBuffers/kNumVideoBuffers/
// Timeout in milliseconds v4l2_thread_ blocks waiting for a frame from the hw.
enum { kCaptureTimeoutMs = 200 };
// The number of continuous timeouts tolerated before treated as error.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698