v4l2src: Move preferred resolution query before the probe
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 11 Feb 2021 19:24:29 +0000 (14:24 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 19 Feb 2021 21:02:02 +0000 (16:02 -0500)
commit409ea3ac841fc6892646f603447ac6b44856416f
treee70d354f0336afa259f93c1615775f7307d26d4b
parentb530c0ef4eac10ec01c84fcef96e63a501950c1f
v4l2src: Move preferred resolution query before the probe

As we lock the DV_TIMINGS (and standards in the future), we need to probe the
caps after, otherwise, we may endup fixating to an unsupported resolution,
which would lead to a not-negotiated error.

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