From patchwork Sun Oct 4 15:41:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 51618 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n94Fbo73022619 for ; Sun, 4 Oct 2009 15:37:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629AbZJDPhU (ORCPT ); Sun, 4 Oct 2009 11:37:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756147AbZJDPhU (ORCPT ); Sun, 4 Oct 2009 11:37:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12910 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754425AbZJDPhT (ORCPT ); Sun, 4 Oct 2009 11:37:19 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n94FandR025604; Sun, 4 Oct 2009 11:36:49 -0400 Received: from localhost.localdomain (vpn2-8-189.ams2.redhat.com [10.36.8.189]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n94Falps004621; Sun, 4 Oct 2009 11:36:48 -0400 Message-ID: <4AC8C227.4000301@redhat.com> Date: Sun, 04 Oct 2009 17:41:27 +0200 From: Hans de Goede User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 MIME-Version: 1.0 To: Jean-Francois Moine CC: James Blanford , =?ISO-8859-1?Q?Erik_Andr=E9n?= , Linux Media Mailing List Subject: PATCH: gscpa stv06xx + ov518: dont discard every other frame X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 5ad36b0c0e90 linux/drivers/media/video/gspca/ov519.c --- a/linux/drivers/media/video/gspca/ov519.c Sun Oct 04 16:23:04 2009 +0200 +++ b/linux/drivers/media/video/gspca/ov519.c Sun Oct 04 17:26:43 2009 +0200 @@ -2939,7 +2939,7 @@ /* A false positive here is likely, until OVT gives me * the definitive SOF/EOF format */ if ((!(data[0] | data[1] | data[2] | data[3] | data[5])) && data[6]) { - gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, 0); + frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, 0); gspca_frame_add(gspca_dev, FIRST_PACKET, frame, data, 0); sd->packet_nr = 0; } diff -r 5ad36b0c0e90 linux/drivers/media/video/gspca/stv06xx/stv06xx.c --- a/linux/drivers/media/video/gspca/stv06xx/stv06xx.c Sun Oct 04 16:23:04 2009 +0200 +++ b/linux/drivers/media/video/gspca/stv06xx/stv06xx.c Sun Oct 04 17:26:43 2009 +0200 @@ -394,7 +394,7 @@ PDEBUG(D_PACK, "End of frame detected"); /* Complete the last frame (if any) */ - gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, 0); + frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, data, 0); if (chunk_len) PDEBUG(D_ERR, "Chunk length is "