summaryrefslogtreecommitdiff
path: root/src/android/camera_worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_worker.cpp')
-rw-r--r--src/android/camera_worker.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/android/camera_worker.cpp b/src/android/camera_worker.cpp
index 300ddde0..9f727826 100644
--- a/src/android/camera_worker.cpp
+++ b/src/android/camera_worker.cpp
@@ -52,18 +52,24 @@ void CaptureRequest::queue()
*/
CameraWorker::CameraWorker()
{
- worker_.moveToThread(&thread_);
+ worker_.moveToThread(this);
}
void CameraWorker::start()
{
- thread_.start();
+ Thread::start();
}
void CameraWorker::stop()
{
- thread_.exit();
- thread_.wait();
+ exit();
+ wait();
+}
+
+void CameraWorker::run()
+{
+ exec();
+ dispatchMessages(Message::Type::InvokeMessage);
}
void CameraWorker::queueRequest(CaptureRequest *request)