This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-compliance: when streaming used at least 2 buffers.
Author:  Hans Verkuil <[email protected]>
Date:    Fri Oct 31 15:32:02 2014 +0100

While streaming with 1 buffer is possible with some drivers (uvc), this
will lead to dropped frames. So ask at least two buffers.

Signed-off-by: Hans Verkuil <[email protected]>
(cherry picked from commit 533212be053c9f08e168d9c7eb94a522b3266871)

 utils/v4l2-compliance/v4l2-test-buffers.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=33961566eb0ad85fb14741a80df14165513b2465

diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp 
b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index bab64c8..0021d15 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -512,7 +512,7 @@ int testExpBuf(struct node *node)
 
                cv4l_queue q(type, V4L2_MEMORY_MMAP);
 
-               fail_on_test(q.reqbufs(node, 1));
+               fail_on_test(q.reqbufs(node, 2));
                if (q.has_expbuf(node)) {
                        fail_on_test(q.export_bufs(node));
                        have_expbuf = true;
@@ -679,7 +679,7 @@ static int setupM2M(struct node *node, cv4l_queue &q)
 {
        last_m2m_seq.init();
 
-       fail_on_test(q.reqbufs(node, 1));
+       fail_on_test(q.reqbufs(node, 2));
        for (unsigned i = 0; i < q.g_buffers(); i++) {
                buffer buf(q);
 
@@ -823,7 +823,7 @@ int testMmap(struct node *node, unsigned frame_count)
                fail_on_test(node->streamoff(q.g_type()));
 
                q.init(type, V4L2_MEMORY_MMAP);
-               fail_on_test(q.reqbufs(node, 1));
+               fail_on_test(q.reqbufs(node, 2));
                fail_on_test(node->streamoff(q.g_type()));
                last_seq.init();
 
@@ -979,7 +979,7 @@ int testUserPtr(struct node *node, unsigned frame_count)
                fail_on_test(!can_stream);
 
                q.init(type, V4L2_MEMORY_USERPTR);
-               fail_on_test(q.reqbufs(node, 1));
+               fail_on_test(q.reqbufs(node, 2));
                fail_on_test(node->streamoff(q.g_type()));
                last_seq.init();
                if (node->is_video)
@@ -1086,7 +1086,7 @@ int testDmaBuf(struct node *expbuf_node, struct node 
*node, unsigned frame_count
                }
                fail_on_test(!can_stream);
 
-               fail_on_test(q.reqbufs(node, 1));
+               fail_on_test(q.reqbufs(node, 2));
                fail_on_test(node->streamoff(q.g_type()));
                last_seq.init();
                if (node->is_video)

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to