summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTuukka Pasanen <tuukka.pasanen@ilmi.fi>2012-02-16 12:59:10 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-02-16 12:59:10 +0000
commitef37bb48bc6093c218271cf49ff063f57b6f0207 (patch)
tree5eb60986c8d197fefb49ee53c8dca598f9563a0d /sys
parent71477a3eac1351869f81296400c3a576add4de28 (diff)
v4l2src: fix for webcamstudio vloopback
Because vlooback emits 25 - ENOTTY and no EINVAL v4l2src thought it can't handle this and does not work. https://bugzilla.gnome.org/show_bug.cgi?id=669455
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/v4l2_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index 3808d8e621..c8af0a6cad 100644
--- a/sys/v4l2/v4l2_calls.c
+++ b/sys/v4l2/v4l2_calls.c
@@ -253,7 +253,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
control.id = n;
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, &control) < 0) {
- if (errno == EINVAL) {
+ if (errno == EINVAL || errno == ENOTTY) {
if (n < V4L2_CID_PRIVATE_BASE) {
GST_DEBUG_OBJECT (e, "skipping control %08x", n);
/* continue so that we also check private controls */