aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-20 14:00:00 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-29 16:09:14 +0100
commit401a5415324e29cc4df9b5c05d9ce440d21a1f80 (patch)
tree45fa4b959e9b5a097fd19136c3d0288c2ab56af4
parenteb680fda1dc5fb2a107b5506810ac8a20e63bbe6 (diff)
v4l2-compliance: check for EVENT_EOS for stateful encoder
Stateful encoders require the presence of EVENT_EOS. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-compliance/v4l2-test-controls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-controls.cpp b/utils/v4l2-compliance/v4l2-test-controls.cpp
index c910b58b..d1d34d7e 100644
--- a/utils/v4l2-compliance/v4l2-test-controls.cpp
+++ b/utils/v4l2-compliance/v4l2-test-controls.cpp
@@ -875,6 +875,8 @@ int testEvents(struct node *node)
bool have_eos = !doioctl(node, VIDIOC_SUBSCRIBE_EVENT, &sub);
if (have_eos)
fail_on_test(doioctl(node, VIDIOC_UNSUBSCRIBE_EVENT, &sub));
+ else
+ fail_on_test(node->codec_mask & STATEFUL_ENCODER);
sub.type = V4L2_EVENT_SOURCE_CHANGE;
bool have_source_change = !doioctl(node, VIDIOC_SUBSCRIBE_EVENT, &sub);
if (have_source_change)

Privacy Policy