From 1f87b57df189e21b7fdd2fdf56b1b0fab1dc4df9 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 23 Sep 2020 17:38:32 +0100 Subject: 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 Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- simple-cam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simple-cam.cpp') 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); -- cgit v1.2.1