summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/v4l2_calls.c
diff options
context:
space:
mode:
authorElaine Xiong <Elaine.Xiong@Sun.COM>2009-07-17 13:22:57 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-07-19 11:42:13 +0100
commit085f87d85f83659b86e4ab880e389fa934f03962 (patch)
treeccd38005283a8da6d2a827cacd50ba7c8c59ca41 /sys/v4l2/v4l2_calls.c
parent988123b1869393f0b7eab72d16c28abe141228d3 (diff)
v4l2: Fix v4l2src on OpenSolaris
The v4l2 driver for USB webcams on OpenSolaris does not support select() calls. Detect when select() fails, and skip polling the device afterward, which restores the pre 0.10.14 behaviour on OpenSolaris. Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
Diffstat (limited to 'sys/v4l2/v4l2_calls.c')
-rw-r--r--sys/v4l2/v4l2_calls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index f8a7d295..4fb1fad8 100644
--- a/sys/v4l2/v4l2_calls.c
+++ b/sys/v4l2/v4l2_calls.c
@@ -442,6 +442,8 @@ gst_v4l2_open (GstV4l2Object * v4l2object)
if (libv4l2_fd != -1)
v4l2object->video_fd = libv4l2_fd;
+ v4l2object->can_poll_device = TRUE;
+
/* get capabilities, error will be posted */
if (!gst_v4l2_get_capabilities (v4l2object))
goto error;