aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-12 19:29:11 (GMT)
committerHans Verkuil <hverkuil@xs4all.nl>2010-09-12 19:29:11 (GMT)
commitb9d78fe81b5ec04edcd2727b8d37a628333ec630 (patch)
tree4be59e818b86d1378a90233a911d79d8104e1a45
parenta3dc9f037af2468634b2dfc6f2851156250274c3 (diff)
qv4l2: reduce the minimum number of buffers to 2
The pwc driver sets the number of buffers to 2, so fails with our too conservative check against a minimum of 3 buffers. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r--utils/qv4l2/qv4l2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp
index 2931cae..9d11a46 100644
--- a/utils/qv4l2/qv4l2.cpp
+++ b/utils/qv4l2/qv4l2.cpp
@@ -239,7 +239,7 @@ bool ApplicationWindow::startCapture(unsigned buffer_size)
break;
}
- if (req.count < 3) {
+ if (req.count < 2) {
error("Too few buffers");
reqbufs_mmap_cap(req);
break;
@@ -293,7 +293,7 @@ bool ApplicationWindow::startCapture(unsigned buffer_size)
break;
}
- if (req.count < 3) {
+ if (req.count < 2) {
error("Too few buffers");
reqbufs_user_cap(req);
break;

Privacy Policy