diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2013-06-04 23:42:24 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2014-01-10 17:13:22 -0500 |
commit | 203e2451346d1161d95ee318479fd8e1ea892ab1 (patch) | |
tree | ad4ce1e33e999490883c440832010cb3f95b206f /sys/v4l2/v4l2_calls.c | |
parent | 092e7605d3b534510291a4dbf3ff9930afa756b3 (diff) |
v4l2: better handle quirks activation
This way we can activate deactivate those quirks all at once at one
place.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
Diffstat (limited to 'sys/v4l2/v4l2_calls.c')
-rw-r--r-- | sys/v4l2/v4l2_calls.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index cad9fc701..ae44a1eaa 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -581,6 +581,13 @@ gst_v4l2_open (GstV4l2Object * v4l2object) if (v4l2object->extra_controls) gst_v4l2_set_controls (v4l2object, v4l2object->extra_controls); + /* 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")) { + v4l2object->never_interlaced = TRUE; + } + return TRUE; /* ERRORS */ |