summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/w996Xcf.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-10-16 16:26:22 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 21:40:45 +0100
commit8394bcf3fc0293aa5cd07e2a1a3c6bf4e1a5b835 (patch)
treeb7fa8410b2db4a9db5107ae2dc3f01d64d3c5b45 /drivers/media/video/gspca/w996Xcf.c
parentV4L/DVB (13179): gspca_ov519: cache sensor regs to avoid unnecessary slow i2c... (diff)
downloadlinux-8394bcf3fc0293aa5cd07e2a1a3c6bf4e1a5b835.tar.xz
linux-8394bcf3fc0293aa5cd07e2a1a3c6bf4e1a5b835.zip
V4L/DVB (13180): gspca-w9968cf: Don't add an extra packet to the buffer after the EOF
gspca-w9968cf: Don't add an extra packet to the buffer after the EOF, this makes the frame data size bigger then it should be which makes gstreamer discard it. This patch also fixes an unrelated compiler warning. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/w996Xcf.c')
-rw-r--r--drivers/media/video/gspca/w996Xcf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/w996Xcf.c b/drivers/media/video/gspca/w996Xcf.c
index ba3a28d4f87f..3bdc6b405e27 100644
--- a/drivers/media/video/gspca/w996Xcf.c
+++ b/drivers/media/video/gspca/w996Xcf.c
@@ -580,7 +580,7 @@ static void w9968cf_pkt_scan(struct gspca_dev *gspca_dev,
/* An empty packet signals EOF */
if (gspca_dev->empty_packet) {
frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame,
- data, len);
+ NULL, 0);
gspca_frame_add(gspca_dev, FIRST_PACKET, frame,
NULL, 0);
gspca_dev->empty_packet = 0;