libv4l1: Handle devices with overlay capability too
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Feb 2011 22:02:55 +0000 (23:02 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 9 Feb 2011 22:04:27 +0000 (23:04 +0100)
This may need more testing, but with the kernel compatibility gone,
libv4l1 now *must* handle these devices too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4l1/libv4l1.c

index 3774cda..9eb9684 100644 (file)
@@ -321,11 +321,6 @@ int v4l1_open(const char *file, int oflag, ...)
        if (SYS_IOCTL(fd, VIDIOC_QUERYCAP, &cap2))
                return fd;
 
-       /* IMPROVEME */
-       /* we only support simple video capture devices which do not do overlay */
-       if ((cap2.capabilities & 0x0F) != V4L2_CAP_VIDEO_CAPTURE)
-               return fd;
-
        /* If no log file was set by the app, see if one was specified through the
           environment */
        if (!v4l1_log_file) {