[media] gspca: reset image_len to 0 on LAST_PACKET when discarding frame
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Jun 2011 06:44:43 +0000 (03:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:39 +0000 (17:53 -0300)
commitfa4376d28e19b0835f948c5b42f13738f68bd9a1
tree838901752fdbed391b90b5d9aa68b6ae887beac2
parent21144ea601f1fea37c7add15a099affec7c08425
[media] gspca: reset image_len to 0 on LAST_PACKET when discarding frame

Reset image and image_len to NULL/0 on LAST_PACKET when we're in discard
frame mode, just like we do when not discarding the current frame.

The new se401 driver uses image_len for SOF/EOF detection and thus depends on
this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c