summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index d9cb2b96..bdb41d44 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -164,6 +164,10 @@ bool aruco_tracker::open_camera()
QMutexLocker l(&camera_mtx);
camera = video::make_camera(s.camera_name);
+
+ if (!camera)
+ return false;
+
video::impl::camera::info args {};
if (res.width)