From 4632f33334e7fe32460ef9dcf0bc4f6a3d11762e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 22 Dec 2017 10:21:28 -0500 Subject: [PATCH] v4l2deviceprovider: Don't do slow probes This is problematic in the current design at it seriously slow down startup of applications. As of now, no known application uses the colorimetry and the interlace-modes for anything (the two fields that won't be probed). So let's disable it, in the long term we'll try and find a way to interact with the provider so applicaiton could opt-in these slow probing methods for more advance configuration. --- sys/v4l2/gstv4l2deviceprovider.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/v4l2/gstv4l2deviceprovider.c b/sys/v4l2/gstv4l2deviceprovider.c index 06d86c902a..8f6e9ea8ba 100644 --- a/sys/v4l2/gstv4l2deviceprovider.c +++ b/sys/v4l2/gstv4l2deviceprovider.c @@ -142,6 +142,7 @@ gst_v4l2_device_provider_probe_device (GstV4l2DeviceProvider * provider, goto close; type = GST_V4L2_DEVICE_TYPE_SOURCE; + v4l2obj->skip_try_fmt_probes = TRUE; } if (v4l2obj->device_caps &