diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-02-07 16:18:03 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-02-14 12:34:25 +0000 |
commit | 871879eb7356d532c4ed7791ec22cf5ae9f005e8 (patch) | |
tree | 3586b3c2d5f249b7ebd9562b24b2d4c2bacfe3bd /src/qcam/main_window.h | |
parent | de584a58f787c4b30485bb592776a8c0b8dc0100 (diff) |
qcam: Store CameraManager as class member
Intialise a local copy of the CameraManager instance to ease
access to the CameraManager which is frequently utilised.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r-- | src/qcam/main_window.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h index 04fb9e3e..d19cda16 100644 --- a/src/qcam/main_window.h +++ b/src/qcam/main_window.h @@ -44,8 +44,8 @@ private Q_SLOTS: void updateTitle(); private: - std::string chooseCamera(CameraManager *cm); - int openCamera(CameraManager *cm); + std::string chooseCamera(); + int openCamera(); int startCapture(); void stopCapture(); @@ -58,6 +58,7 @@ private: const OptionsParser::Options &options_; + CameraManager *cm_; std::shared_ptr<Camera> camera_; FrameBufferAllocator *allocator_; |