Set the v4l2_buffer::length field when queueing a buffer
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 2 Jun 2010 12:21:31 +0000 (14:21 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 2 Jun 2010 12:21:31 +0000 (14:21 +0200)
commit09cb44f779ed77c1c9dc388bd4faf3ae6072cc57
tree0dbe870615d5d490a3debe878e72c2658cabd2e4
parent5444ca9d5fb255ea35fc60bf1cb27d29135cfbf3
Set the v4l2_buffer::length field when queueing a buffer

Userspace buffers size needs to be passed to drivers on VIDIOC_QBUF. Set
the v4l2_buffer::length field to the size of the allocated buffer before
calling VIDIOC_QBUF.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
yavta.c