aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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