v4l2src: Simplify format handling
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 9 Jul 2018 19:33:02 +0000 (15:33 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 27 Aug 2018 17:41:30 +0000 (13:41 -0400)
commitfe3a70fefde604ce17bdd10175c894066de9881f
treedc2b63263b794cca6ea5a8d0755b2b69e0e9cda3
parentfd0afe033b6f1cef781309e18146e2d04043f625
v4l2src: Simplify format handling

Always initially use try_format(), delaying set_format() to when the
allocation is being negotiated. This avoid having two code paths, and
will be help adding support for properly importing buffers of specific
strides and offsets.

https://bugzilla.gnome.org/show_bug.cgi?id=583890
sys/v4l2/gstv4l2src.c