libcamera: v4l2_device: Buffer is not a struct

Buffer is a class, not a struct. Fix a variable declaration accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2019-04-26 17:45:32 +03:00
parent 1ec73e9ad5
commit 4088ae7a20

View file

@ -622,7 +622,7 @@ int V4L2Device::exportBuffers(BufferPool *pool)
for (i = 0; i < pool->count(); ++i) {
struct v4l2_plane planes[VIDEO_MAX_PLANES] = {};
struct v4l2_buffer buf = {};
struct Buffer &buffer = pool->buffers()[i];
Buffer &buffer = pool->buffers()[i];
buf.index = i;
buf.type = bufferType_;