[libcamera-devel] [PATCH 5/8] libcamera: v4l2_device: Buffer is not a struct
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Apr 26 17:01:52 CEST 2019
Buffer is a class, not a struct. Fix a variable declaration accordingly.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/v4l2_device.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 8d8c7887bf71..cfdce4813da4 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_;
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list