v4l2-compliance: fix one error code check when testing framesizes
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 29 Jul 2011 13:28:01 +0000 (15:28 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Fri, 29 Jul 2011 13:28:01 +0000 (15:28 +0200)
Don't fail when enum_framesizes doesn't return any sizes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-test-formats.cpp

index 5b56a65..4ec19f7 100644 (file)
@@ -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)