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

Subject: Fix a small bug at the V4L2_CID_USER_BASE get ctrl logic
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Thu Feb 10 19:07:44 2011 -0200

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 console/v4l-info.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/xawtv3.git?a=commitdiff;h=877b30328cb0645b4f74c0da34c660f0ae56ec2f

diff --git a/console/v4l-info.c b/console/v4l-info.c
index aafe54a..07279dd 100644
--- a/console/v4l-info.c
+++ b/console/v4l-info.c
@@ -30,7 +30,7 @@ static int dump_v4l2(int fd, int tab)
        struct v4l2_format      format;
        struct v4l2_framebuffer fbuf;
        struct v4l2_queryctrl   qctrl;
-       int i, id;
+       int i;
 
        printf("general info\n");
        memset(&capability,0,sizeof(capability));
@@ -159,9 +159,9 @@ static int dump_v4l2(int fd, int tab)
                printf("    VIDIOC_QUERYCTRL(BASE+%d)\n",i);
                print_struct(stdout,desc_v4l2_queryctrl,&qctrl,"",tab);
        }
-        for (i = 0; i < V4L2_CID_LASTP1 - V4L2_CID_USER_BASE; i++) {
+        for (; i < V4L2_CID_LASTP1 - V4L2_CID_USER_BASE; i++) {
                memset(&qctrl,0,sizeof(qctrl));
-               qctrl.id = id + V4L2_CID_USER_BASE;
+               qctrl.id = i + V4L2_CID_USER_BASE;
                if (-1 == ioctl(fd,VIDIOC_QUERYCTRL,&qctrl))
                        break;
                if (qctrl.flags & V4L2_CTRL_FLAG_DISABLED)

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

Reply via email to