summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-04 15:53:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-04 15:53:55 +0200
commit38514e2833e9b300698cad51afc8c3866c156ac5 (patch)
tree85ccc80733f00488e5f0fdb5f9f121fe5529da8d /tracker-pt
parentc2ab96e976ff12f1d5fdaefbb77042c024cb47dd (diff)
tracker/pt: abort thread after camera open failure
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index b996448b..234b3137 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -60,7 +60,8 @@ void Tracker_PT::run()
set_fov(s.fov);
{
QMutexLocker l(&camera_mtx);
- (void)camera->start(s);
+ if (!camera->start(s))
+ break;
}
}