Skip to content

Commit

Permalink
V4L/DVB (13180): gspca-w9968cf: Don't add an extra packet to the buff…
Browse files Browse the repository at this point in the history
…er 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>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent fb1f902 commit 8394bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/ov519.c
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ static int i2c_w(struct sd *sd, __u8 reg, __u8 value)

static int i2c_r(struct sd *sd, __u8 reg)
{
int ret;
int ret = -1;

if (sd->sensor_reg_cache[reg] != -1)
return sd->sensor_reg_cache[reg];
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/w996Xcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8394bcf

Please sign in to comment.