v4l2: UVC driver is named uvcvideo these days

The quirk to avoid probing interlacing didn't work anymore as the driver
is now name uvcvideo. This should slightly speed up camera startup.
This commit is contained in:
Nicolas Dufresne 2017-07-17 20:47:26 -04:00
parent 83cb5ef957
commit a6d224521e

View file

@ -594,7 +594,8 @@ gst_v4l2_open (GstV4l2Object * v4l2object)
/* UVC devices are never interlaced, and doing VIDIOC_TRY_FMT on them
* causes expensive and slow USB IO, so don't probe them for interlaced
*/
if (!strcmp ((char *) v4l2object->vcap.driver, "uvcusb")) {
if (!strcmp ((char *) v4l2object->vcap.driver, "uvcusb") ||
!strcmp ((char *) v4l2object->vcap.driver, "uvcvideo")) {
v4l2object->never_interlaced = TRUE;
}