projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3dc9f0
)
qv4l2: reduce the minimum number of buffers to 2
author
Hans Verkuil
<hverkuil@xs4all.nl>
Sun, 12 Sep 2010 19:29:11 +0000
(21:29 +0200)
committer
Hans 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
patch
|
blob
|
history
diff --git
a/utils/qv4l2/qv4l2.cpp
b/utils/qv4l2/qv4l2.cpp
index
2931cae
..
9d11a46
100644
(file)
--- 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;