libcamera: request: Make Stream pointer const
The Stream pointer just acts as a key in the Request object. There is no good use-case to modify a stream from a pointer retrieved from the Request, make it const. This allows pipeline handlers to better express that the Stream pointer is retrieved in a Request should just be treated as a key. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
dac8e9552c
commit
27869c5f64
9 changed files with 15 additions and 15 deletions
|
@ -169,7 +169,7 @@ void Capture::requestComplete(Request *request)
|
|||
info << "fps: " << std::fixed << std::setprecision(2) << fps;
|
||||
|
||||
for (auto it = buffers.begin(); it != buffers.end(); ++it) {
|
||||
Stream *stream = it->first;
|
||||
const Stream *stream = it->first;
|
||||
FrameBuffer *buffer = it->second;
|
||||
const std::string &name = streamName_[stream];
|
||||
|
||||
|
@ -209,7 +209,7 @@ void Capture::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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue