v4l2: handle 0x0 sizes gracefully
authorWim Taymans <wtaymans@redhat.com>
Mon, 29 Nov 2021 14:35:36 +0000 (15:35 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 29 Nov 2021 14:35:36 +0000 (15:35 +0100)
commit9aaef931bf44965670b5c4027ffdaffd03f4ab19
treeb010e66c395252f681c1d1ecfcce8a2fb4a355a4
parente90859f4d8a23167fee9ef18779d3797ff510b60
v4l2: handle 0x0 sizes gracefully

Also ignore 0x0 sizes in the fallback case and assume the size can be
anything between 1x1 and MAXxMAX.

This fixes the case where a width=0, height=0 caps are created. Whith
this patch the caps will contain width=[1,MAX], height=[1,MAX].

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1396>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c