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: libv4l1: move VIDIOCCAPTURE to libv4l1
Author:  Huzaifa Sidhpurwala <[email protected]>
Date:    Fri Jun 4 13:10:14 2010 +0530

move VIDIOCCAPTURE to libv4l1

Signed-of-by: Huzaifa Sidhpurwala <[email protected]>

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

---

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

diff --git a/lib/libv4l1/libv4l1.c b/lib/libv4l1/libv4l1.c
index 579f13b..2981c40 100644
--- a/lib/libv4l1/libv4l1.c
+++ b/lib/libv4l1/libv4l1.c
@@ -967,6 +967,22 @@ int v4l1_ioctl(int fd, unsigned long int request, ...)
 
                break;
        }
+
+       case VIDIOCCAPTURE: {
+               int *on = arg;
+               enum v4l2_buf_type captype = V4L2_BUF_TYPE_VIDEO_CAPTURE;
+
+               if (0 == *on) {
+               /* dirty hack time.  But v4l1 has no STREAMOFF
+               * equivalent in the API, and this one at
+               * least comes close ... */
+                       v4l2_ioctl(fd, VIDIOC_STREAMOFF, &captype);
+               }
+
+               result = v4l2_ioctl(fd, VIDIOC_OVERLAY, on);
+
+               break;
+       }
        default:
                /* Pass through libv4l2 for applications which are using v4l2 
through
                   libv4l1 (this can happen with the v4l1compat.so wrapper 
preloaded */

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

Reply via email to