aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-26 04:01:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:41 -0400
commitf6b8332b5e90a8d9c42f224e60900c7eae474388 (patch)
tree8a90891df1936dea9a586de8516b7fd4a6060bf9 /drivers
parenteebb876b0b8f7ee5e6c01a85433a754c9be88369 (diff)
V4L/DVB (11218): gspca - sq905: Update the frame pointer after adding the last packet.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/sq905.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sq905.c b/drivers/media/video/gspca/sq905.c
index da60eea51e44..b1d377e495c2 100644
--- a/drivers/media/video/gspca/sq905.c
+++ b/drivers/media/video/gspca/sq905.c
@@ -270,13 +270,14 @@ static void sq905_dostream(struct work_struct *work)
270 } 270 }
271 frame = gspca_get_i_frame(gspca_dev); 271 frame = gspca_get_i_frame(gspca_dev);
272 if (frame && !discarding) { 272 if (frame && !discarding) {
273 gspca_frame_add(gspca_dev, packet_type, 273 frame = gspca_frame_add(gspca_dev, packet_type,
274 frame, data, data_len); 274 frame, data, data_len);
275 /* If entire frame fits in one packet we still 275 /* If entire frame fits in one packet we still
276 need to add a LAST_PACKET */ 276 need to add a LAST_PACKET */
277 if ((packet_type == FIRST_PACKET) && 277 if (packet_type == FIRST_PACKET &&
278 (bytes_left == 0)) 278 bytes_left == 0)
279 gspca_frame_add(gspca_dev, LAST_PACKET, 279 frame = gspca_frame_add(gspca_dev,
280 LAST_PACKET,
280 frame, data, 0); 281 frame, data, 0);
281 } else { 282 } else {
282 discarding = 1; 283 discarding = 1;