summaryrefslogtreecommitdiff
path: root/src/android/camera_worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_worker.h')
-rw-r--r--src/android/camera_worker.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/android/camera_worker.h b/src/android/camera_worker.h
index 64b1658b..e289ef9b 100644
--- a/src/android/camera_worker.h
+++ b/src/android/camera_worker.h
@@ -42,7 +42,7 @@ private:
std::unique_ptr<libcamera::Request> request_;
};
-class CameraWorker
+class CameraWorker : private libcamera::Thread
{
public:
CameraWorker();
@@ -52,6 +52,9 @@ public:
void queueRequest(CaptureRequest *request);
+protected:
+ void run() override;
+
private:
class Worker : public libcamera::Object
{
@@ -63,7 +66,6 @@ private:
};
Worker worker_;
- libcamera::Thread thread_;
};
#endif /* __ANDROID_CAMERA_WORKER_H__ */