From 085f87d85f83659b86e4ab880e389fa934f03962 Mon Sep 17 00:00:00 2001 From: Elaine Xiong Date: Fri, 17 Jul 2009 13:22:57 +0100 Subject: 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 --- sys/v4l2/gstv4l2object.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/v4l2/gstv4l2object.h') 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; -- cgit