summaryrefslogtreecommitdiff
path: root/simple-cam.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-09-23 17:38:32 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-09-24 10:03:02 +0100
commit1f87b57df189e21b7fdd2fdf56b1b0fab1dc4df9 (patch)
treeb4479b8200d61ddb6c500b6168209f6a5c883a88 /simple-cam.cpp
parent4ee88d107d0ed1bb6fa23b46d3b7a85c958a10ff (diff)
simple-cam: Use a const stream
The API was updated to ensure the Stream pointer referenced from the BufferMap is const. Update accordingly. Reported-by: Erkan Diken <erkandiken@gmail.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'simple-cam.cpp')
-rw-r--r--simple-cam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simple-cam.cpp b/simple-cam.cpp
index e2ac122..3aa975e 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);