This test will fail when using the wrapper library as the wrapper
library does not see when another filehandle changes the format.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
}
// Check if we have found different formats, otherwise this
// test is pointless.
- if (pixfmt1 == pixfmt2 && w1 == w2 && h1 == h2)
+ // This test will also never succeed if we are using the libv4l2
+ // wrapper.
+ if (wrapper || (pixfmt1 == pixfmt2 && w1 == w2 && h1 == h2))
return 0;
if (type == V4L2_BUF_TYPE_SDR_CAPTURE) {