summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-02 00:00:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-02 00:01:38 +0200
commit16497b0362244407a139479b6e15834cf709779c (patch)
treef30648421d0ec4978a9d5242730cb9930c4a5150 /tracker-pt/ftnoir_tracker_pt.h
parenta42a6ec0d7f99de0aabf9c9732303ded426e843f (diff)
tracker/pt: fix rare crash due to QProcess use across threads
This was caused by QProcess in video/ps3eye getting created from the UI thread, then recreated on the Point Tracker's thread.
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index fa3d94ad..50e51405 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -50,7 +50,6 @@ struct Tracker_PT : QThread, ITracker
private:
void run() override;
- bool maybe_reopen_camera();
void set_fov(int value);
pointer<pt_runtime_traits> traits;
@@ -74,6 +73,7 @@ private:
std::atomic<unsigned> point_count { 0 };
std::atomic<bool> ever_success = false;
+ std::atomic<bool> reopen_camera_flag = true;
mutable QMutex center_lock, data_lock;
point_filter filter{s};
};