From 4793e57051bf17620e93f62e2651fc5df1708935 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 May 2019 18:50:05 +0200 Subject: tracker/{aruco,easy,pt}: bail out when camera missing --- tracker-pt/ftnoir_tracker_pt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index ea5346f6c..194fd4236 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()) { -- cgit v1.2.3