summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-22 08:45:08 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-07-22 08:45:08 +0200
commit8d02e766abd51eddd6259a2b93dad401c26cd359 (patch)
tree0905d2220f113cbc36a6b54ffa73bef5c3fd32a5 /linux/drivers/media/video
parent0cef9d3922bbe0b544c7d3a129e2540d6a480fde (diff)
downloadmediapointer-dvb-s2-8d02e766abd51eddd6259a2b93dad401c26cd359.tar.gz
mediapointer-dvb-s2-8d02e766abd51eddd6259a2b93dad401c26cd359.tar.bz2
gspca: Bad handling of start of frames in sonixj.
From: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/gspca/gspca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c
index beb2ec701..729e0b4ed 100644
--- a/linux/drivers/media/video/gspca/gspca.c
+++ b/linux/drivers/media/video/gspca/gspca.c
@@ -216,6 +216,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;
}