[libcamera-devel] [PATCH 2/4] simple-cam: Use a const stream
Kieran Bingham
kieran.bingham at ideasonboard.com
Wed Sep 23 18:44:10 CEST 2020
The API was updated to ensure the Stream pointer referenced from the
BufferMap is const.
Update accordingly.
Reported-by: Erkan Diken <erkandiken at gmail.com>
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
simple-cam.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/simple-cam.cpp b/simple-cam.cpp
index e2ac122546ce..3aa975e14f48 100644
--- a/simple-cam.cpp
+++ b/simple-cam.cpp
@@ -70,7 +70,7 @@ static void requestComplete(Request *request)
for (auto it = buffers.begin(); it != buffers.end(); ++it)
{
- Stream *stream = it->first;
+ const Stream *stream = it->first;
FrameBuffer *buffer = it->second;
request->addBuffer(stream, buffer);
--
2.25.1
More information about the libcamera-devel
mailing list