qv4l2: reduce the minimum number of buffers to 2
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 12 Sep 2010 19:29:11 +0000 (21:29 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sun, 12 Sep 2010 19:29:11 +0000 (21:29 +0200)
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>
utils/qv4l2/qv4l2.cpp

index 2931cae..9d11a46 100644 (file)
@@ -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;