v4l2: get_nearest_size: Always reinit all struct fields on retry
authorHans de Goede <hdegoede@redhat.com>
Fri, 29 Aug 2014 08:57:20 +0000 (10:57 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 29 Aug 2014 20:14:56 +0000 (16:14 -0400)
commit8ad0509a1c2eb85370f1d416901246c61351b41d
tree8ca225031c552cbcc6e325e7952bc41a000ddd4c
parentf5df8af59e73c44d732b1f0bee6f78836e4cd321
v4l2: get_nearest_size: Always reinit all struct fields on retry

They may have been modified by the ioctl even if it failed. This also makes
the S_FMT fallback path try progressive first, making it consistent with the
preferred TRY_FMT path.

https://bugzilla.gnome.org/show_bug.cgi?id=735660
sys/v4l2/gstv4l2object.c