summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2object.h
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/gstv4l2object.h
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/gstv4l2object.h')
-rw-r--r--sys/v4l2/gstv4l2object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h
index c5bc3cb7..88d4eeeb 100644
--- a/sys/v4l2/gstv4l2object.h
+++ b/sys/v4l2/gstv4l2object.h
@@ -72,6 +72,7 @@ struct _GstV4l2Object {
/* the video-device's file descriptor */
gint video_fd;
GstPoll * poll;
+ gboolean can_poll_device;
/* the video buffer (mmap()'ed) */
guint8 **buffer;