diff mbox

PATCH: gscpa stv06xx + ov518: dont discard every other frame

Message ID 4AC8C227.4000301@redhat.com (mailing list archive)
State Accepted
Headers show

Commit Message

Hans de Goede Oct. 4, 2009, 3:41 p.m. UTC
None
diff mbox

Patch

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 "