summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-07-24 14:00:58 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-08-05 14:33:52 +0200
commit3efc7e8834303fbc71779b199e415ccfe18a94f0 (patch)
treed4d0bde0cc0925e39fdebe5d3ce704f7b54c78e6 /src
parentf2d19266a4d3788e8787db469337c7969fd152d2 (diff)
andrdid: camera_device: Store const templates
The request capture templates stored in the CameraDevice::requestTemplates_ should not be modified once created. Store a const pointer to the request templates in the class member map. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 00472c21..fd2eeff1 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -95,7 +95,7 @@ private:
std::unique_ptr<libcamera::CameraConfiguration> config_;
CameraMetadata *staticMetadata_;
- std::map<unsigned int, CameraMetadata *> requestTemplates_;
+ std::map<unsigned int, const CameraMetadata *> requestTemplates_;
const camera3_callback_ops_t *callbacks_;
std::vector<Camera3StreamConfiguration> streamConfigurations_;