summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-02 18:50:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-02 18:55:46 +0200
commit4793e57051bf17620e93f62e2651fc5df1708935 (patch)
tree806da084534c822d4107e614f46db32c1aef9a96 /tracker-pt
parentbac58c2d5e45d838e32bc1d5cc0b12a19365c569 (diff)
tracker/{aruco,easy,pt}: bail out when camera missing
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 ea5346f6..194fd423 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -53,7 +53,8 @@ void Tracker_PT::run()
{
portable::set_curthread_name("tracker/pt");
- maybe_reopen_camera();
+ if (!maybe_reopen_camera())
+ return;
while(!isInterruptionRequested())
{