This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: libv4l2: Support output devices too
Author:  Hans de Goede <[email protected]>
Date:    Sun Jul 17 22:40:41 2011 +0200

Now that we support plugins it makes sense to also wrap output devices,
so that we can use plugins with them too.

Remark, we should probably add a write() callback to the dev_ops,
and a libv4l2_write function too ?

Signed-off-by: Hans de Goede <[email protected]>

 lib/libv4l2/libv4l2.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=8ce661a7130a28f1996453cd8ef211ac891cd184

diff --git a/lib/libv4l2/libv4l2.c b/lib/libv4l2/libv4l2.c
index e975a65..04689b8 100644
--- a/lib/libv4l2/libv4l2.c
+++ b/lib/libv4l2/libv4l2.c
@@ -617,13 +617,6 @@ int v4l2_fd_open(int fd, int v4l2_flags)
                return -1;
        }
 
-       /* we only add functionality for video capture devices */
-       if (!(cap.capabilities & V4L2_CAP_VIDEO_CAPTURE) ||
-           !(cap.capabilities & (V4L2_CAP_STREAMING | V4L2_CAP_READWRITE))) {
-               v4l2_plugin_cleanup(plugin_library, dev_ops_priv, dev_ops);
-               return fd;
-       }
-
        /* Get current cam format */
        fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        if (dev_ops->ioctl(dev_ops_priv, fd, VIDIOC_G_FMT, &fmt)) {

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to