diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-10-19 17:17:57 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-10-19 19:15:40 +0530 |
commit | a769684815bc8a47d5df9504700a6420bd15f430 (patch) | |
tree | ff98b1da1a716c41f35508c249e2823af0bf838e /src | |
parent | 640bf94d02c36cb04b4578af14e9d11ad5969ffe (diff) |
android: camera_stream: Return non-const pointer from camera3Stream()
The camera3_stream_t instances are used to interact with the camera
service, whose API uses non-const pointers. Replace the const reference
returned by CameraStream::camera3Stream() with a non-const pointer. It
turns out that nobody calls this function, but new users will be
introduced in subsequent commits.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/android/camera_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_stream.h b/src/android/camera_stream.h index 197bd995..85064268 100644 --- a/src/android/camera_stream.h +++ b/src/android/camera_stream.h @@ -114,7 +114,7 @@ public: camera3_stream_t *camera3Stream, unsigned int index); Type type() const { return type_; } - const camera3_stream_t &camera3Stream() const { return *camera3Stream_; } + camera3_stream_t *camera3Stream() const { return camera3Stream_; } const libcamera::StreamConfiguration &configuration() const; libcamera::Stream *stream() const; |