diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-08-11 01:07:37 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-08-14 13:19:15 +0200 |
commit | 27869c5f649c4b524e142014be073b40230ecbc4 (patch) | |
tree | ce805806bd6c9166e6892887b292109616073b06 /src/qcam/main_window.h | |
parent | dac8e9552ccdff137e717270468e584c2a9895b9 (diff) |
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>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r-- | src/qcam/main_window.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h index 6e1bcd76..3d21779e 100644 --- a/src/qcam/main_window.h +++ b/src/qcam/main_window.h @@ -126,7 +126,7 @@ private: bool captureRaw_; Stream *vfStream_; Stream *rawStream_; - std::map<Stream *, QQueue<FrameBuffer *>> freeBuffers_; + std::map<const Stream *, QQueue<FrameBuffer *>> freeBuffers_; QQueue<CaptureRequest> doneQueue_; QMutex mutex_; /* Protects freeBuffers_ and doneQueue_ */ |