aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-07-08 23:10:34 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-07-08 23:11:22 +0200
commit7d784c6894b10cdf5ec025c2cd7c320320f5f658 (patch)
tree74bbeb9189d0e223e1f9a81edb8e9a03258b1bbf /utils
parent54f4835e5f0a4561b9711eee01a49eafc666be4c (diff)
v4l2-compliance: fix a check for the DONE flag
This was always set by vb2 drivers due to a bug. It is now cleared again after that bug was fixed, but the test should now be inverted. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index fb14170f..dc829189 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -290,7 +290,7 @@ int buffer::check(unsigned type, unsigned memory, unsigned index,
fail_on_test(g_bytesused(p) > g_length(p));
}
fail_on_test(!g_timestamp().tv_sec && !g_timestamp().tv_usec);
- fail_on_test(!(g_flags() & V4L2_BUF_FLAG_DONE));
+ fail_on_test(g_flags() & V4L2_BUF_FLAG_DONE);
fail_on_test((int)g_sequence() < seq.last_seq + 1);
if (v4l_type_is_video(g_type())) {
fail_on_test(g_field() == V4L2_FIELD_ALTERNATE);

Privacy Policy