v4l2src: Refactor to use PreferredCapsInfo structure
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 10 Feb 2021 15:48:48 +0000 (10:48 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 19 Feb 2021 21:02:02 +0000 (16:02 -0500)
commitafb412b75d7e7920d0098b437039fa83827a5a3c
treef335be460f65a01d4a2f7c2fef6d3f5aa15d045c
parentc0fdaffc555b638b0e9a0713e8f33bb9de3e8b81
v4l2src: Refactor to use PreferredCapsInfo structure

Avoid passing around a bare structure for the preference, this removes
the need to copy and free that structure and simplify the code. Also
fix a type in the structure name, Prefered -> Preferred.

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