aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2014-02-04 12:35:09 +0100
committerHans Verkuil <hansverk@cisco.com>2014-02-04 12:35:09 +0100
commit41c25633caa526178e1ef1905a61352d49dac573 (patch)
tree47a4bf143e38027140cdb0e9bd694773ad9a5dc0
parent9a48277d76c511fe7ce34b864c1b9d1b8c9e50cf (diff)
v4l2-compliance: add checks running STREAMON/OFF when no REQBUFS has been called.streaming
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 7bfe4909..fc27c3d8 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -519,6 +519,9 @@ int testMmap(struct node *node)
return ret;
}
+ fail_on_test(doioctl(node, VIDIOC_STREAMON, &bufs.type) != EINVAL);
+ fail_on_test(doioctl(node, VIDIOC_STREAMOFF, &bufs.type));
+
g_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
doioctl(node, VIDIOC_G_FMT, &g_fmt);
bufs.count = 1;

Privacy Policy