v4l2object: drop workaround for misbehaving TRY_FMT
authorDaniel Drake <drake@endlessm.com>
Fri, 27 Jun 2014 10:33:06 +0000 (11:33 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Tue, 1 Jul 2014 16:36:27 +0000 (12:36 -0400)
commitf9eb4dd2063c0fd843a2ee08ba23f9535bc636ed
tree50f266848b2b0f2695f5e6130f4f0d7862de2c34
parentbbb1a8de1fcf6525d7f8a34f84be9e2c2787dc15
v4l2object: drop workaround for misbehaving TRY_FMT

This workaround from 2011 was causing 25 S_FMT ioctls to be sent
to my UVC webcam from under gst_v4l2_object_get_caps as it probes
all the formats. In total, this adds up to about 5 seconds of
execution time, or a 10 second delay while starting up cheese.

These ioctls come from a workaround from 2011 where TRY_FMT might
make changes to hardware settings, so S_FMT was used to restore
the original config:
https://bugzilla.gnome.org/show_bug.cgi?id=649067

The driver bug is now assumed fixed. Remove the workaround to fix the
long startup delay.

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