diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-07-22 10:45:08 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-24 02:00:38 +0400 |
commit | 06ca78fa3a77c955bd46ba3dbe529c399d260aa4 (patch) | |
tree | a80ea316d3b8e97199ad7be251b035bbc0195765 /drivers/media | |
parent | 903e10aa664473ce19c30c0f80ffd7bbbbd8fc33 (diff) | |
download | linux-06ca78fa3a77c955bd46ba3dbe529c399d260aa4.tar.xz |
V4L/DVB (8441): gspca: Bad handling of start of frames in sonixj.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index f815340511e8..0f09784631ad 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; } |