]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB (8441): gspca: Bad handling of start of frames in sonixj.
authorJean-Francois Moine <moinejf@free.fr>
Tue, 22 Jul 2008 06:45:08 +0000 (03:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 23 Jul 2008 22:00:38 +0000 (19:00 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/gspca/gspca.c

index f815340511e82eef6229c33b439fdc041b202a79..0f09784631adb41ddb6a83fbf99bb73f9fc5548b 100644 (file)
@@ -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;
        }