From b9d78fe81b5ec04edcd2727b8d37a628333ec630 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 12 Sep 2010 21:29:11 +0200 Subject: [PATCH] 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 --- utils/qv4l2/qv4l2.cpp | 4 ++-- 1 file 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; -- 2.7.4