summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 17:45:32 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 19:25:13 +0300
commit4088ae7a20034270b632a5a3b163490a9654ae1d (patch)
tree4334bd47c063149293c639365bab5513656aba13 /src
parent1ec73e9ad5008824c80e3b7577437699e9bac898 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 8d8c7887..cfdce481 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -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_;