summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/sq905.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-26 09:01:48 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-03-26 09:01:48 +0100
commit61d85f6f6deaf3d0a860e7010667ebc82d97f925 (patch)
treec0fcbab9a94649831766a9490f9bf0ec5fb6d8ee /linux/drivers/media/video/gspca/sq905.c
parent22e0e4036603784b9b16618cc8e8fff87b46ff35 (diff)
downloadmediapointer-dvb-s2-61d85f6f6deaf3d0a860e7010667ebc82d97f925.tar.gz
mediapointer-dvb-s2-61d85f6f6deaf3d0a860e7010667ebc82d97f925.tar.bz2
gspca - sq905: Update the frame pointer after adding the last packet.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/sq905.c')
-rw-r--r--linux/drivers/media/video/gspca/sq905.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux/drivers/media/video/gspca/sq905.c b/linux/drivers/media/video/gspca/sq905.c
index da60eea51..b1d377e49 100644
--- a/linux/drivers/media/video/gspca/sq905.c
+++ b/linux/drivers/media/video/gspca/sq905.c
@@ -270,13 +270,14 @@ static void sq905_dostream(struct work_struct *work)
}
frame = gspca_get_i_frame(gspca_dev);
if (frame && !discarding) {
- gspca_frame_add(gspca_dev, packet_type,
+ frame = gspca_frame_add(gspca_dev, packet_type,
frame, data, data_len);
/* If entire frame fits in one packet we still
need to add a LAST_PACKET */
- if ((packet_type == FIRST_PACKET) &&
- (bytes_left == 0))
- gspca_frame_add(gspca_dev, LAST_PACKET,
+ if (packet_type == FIRST_PACKET &&
+ bytes_left == 0)
+ frame = gspca_frame_add(gspca_dev,
+ LAST_PACKET,
frame, data, 0);
} else {
discarding = 1;