summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index decf1754..70c29755 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -89,6 +89,11 @@ private:
int androidFormat;
};
+ enum class State {
+ Stopped,
+ Running,
+ };
+
void stop();
int initializeStreamConfigurations();
@@ -115,7 +120,8 @@ private:
CameraWorker worker_;
- bool running_;
+ State state_;
+
std::shared_ptr<libcamera::Camera> camera_;
std::unique_ptr<libcamera::CameraConfiguration> config_;