[media] uvcvideo: Don't skip erroneous payloads
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 3 Nov 2011 10:24:34 +0000 (07:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 13:14:31 +0000 (11:14 -0200)
commit3afedb95858bcc117b207a7c0a6767fe891bdfe9
treecf21cbf7f8fb866ab281544b9a33d387a2cad7aa
parent0c6a3b268e14ab99960028c9ad202b9aebae0a03
[media] uvcvideo: Don't skip erroneous payloads

Instead of skipping the payload completely, which would make the
resulting image corrupted anyway, store the payload normally and mark
the buffer as erroneous. If the no_drop module parameter is set to 1 the
buffer will then be passed to userspace, and tt will then be up to the
application to decide what to do with the buffer.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c