Return-path: Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1LAtnqp019715 for ; Sat, 21 Feb 2009 05:55:49 -0500 Received: from yourtal3.yourtal.com (yourtal3.yourtal.com [209.172.44.134]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n1LAtZKH026963 for ; Sat, 21 Feb 2009 05:55:35 -0500 Message-ID: From: "Sergei Antonov" To: Date: Sat, 21 Feb 2009 13:55:27 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Subject: Genius Look 317 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: video4linux-list-bounces@redhat.com Errors-To: video4linux-list-bounces@redhat.com List-ID: Hi! I'm trying to make 'Genius Look 317' (0c45:60b0, gspca recognizes it) webcam work. v4lgrab.c (from linux-2.6.28.5\Documentation\video4linux) loops infinitely in this code: do { int newbright; read(fd, buffer, win.width * win.height * bpp); f = get_brightness_adj(buffer, win.width * win.height, &newbright); if (f) { vpic.brightness += (newbright << 8); if(ioctl(fd, VIDIOCSPICT, &vpic)==-1) { perror("VIDIOSPICT"); break; } } } while (f); because variable 'f' is always non-zero. If I write 'while(0);' the resulting .ppm contains some random pixels in the top and the rest of the picture is black. Need help. -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list