From 8ce661a7130a28f1996453cd8ef211ac891cd184 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 17 Jul 2011 22:40:41 +0200 Subject: [PATCH] libv4l2: Support output devices too 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 --- lib/libv4l2/libv4l2.c | 7 ------- 1 file changed, 7 deletions(-) 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)) { -- 2.7.4