From: Jean-Francois Moine Date: Tue, 22 Jul 2008 06:45:08 +0000 (-0300) Subject: V4L/DVB (8441): gspca: Bad handling of start of frames in sonixj. X-Git-Tag: v2.6.27-rc1~31^2~83 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=06ca78fa3a77c955bd46ba3dbe529c399d260aa4;p=linux-2.6-omap-h63xx.git V4L/DVB (8441): gspca: Bad handling of start of frames in sonixj. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index f815340511e..0f09784631a 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -209,6 +209,8 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, &frame->v4l2_buf.timestamp); frame->v4l2_buf.sequence = ++gspca_dev->sequence; } else if (gspca_dev->last_packet_type == DISCARD_PACKET) { + if (packet_type == LAST_PACKET) + gspca_dev->last_packet_type = packet_type; return frame; }