aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2011-07-29 13:28:01 (GMT)
committerHans Verkuil <hans.verkuil@cisco.com>2011-07-29 13:28:01 (GMT)
commit1a4b8075216b822b515b84ea27f2a7aebff0e7df (patch)
treef22c86ce8c1e82e31fbc3d72d91cf13ce67261fa
parent8c98c7a8d8502aed076409d75451bde89dfdf18f (diff)
v4l2-compliance: fix one error code check when testing framesizes
Don't fail when enum_framesizes doesn't return any sizes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/v4l2-compliance/v4l2-test-formats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp b/utils/v4l2-compliance/v4l2-test-formats.cpp
index 5b56a65..4ec19f7 100644
--- a/utils/v4l2-compliance/v4l2-test-formats.cpp
+++ b/utils/v4l2-compliance/v4l2-test-formats.cpp
@@ -135,7 +135,7 @@ static int testEnumFrameSizes(struct node *node, __u32 pixfmt)
if (ret == ENOTTY)
return ret;
if (f == 0 && ret == EINVAL)
- return fail("got EINVAL enumerating first framesize\n");
+ return ENOTTY;
if (ret == EINVAL)
break;
if (ret)

Privacy Policy