summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-30 11:34:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-30 11:34:40 +0100
commit612479b4116cb6adea9f12fc0c259d61e4273bbe (patch)
tree19fb5db1b593ac7538a300a98974046232c187a8 /tracker-pt/ftnoir_tracker_pt.cpp
parent768686a9238565a85a26172984788e6d39efd014 (diff)
tracker/pt: fix warn_unused_result
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-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 f3e9dc4b..08bf56c6 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -157,7 +157,8 @@ void Tracker_PT::apply_settings()
if (!camera.get_info(info) || frame.rows != info.res_y || frame.cols != info.res_x)
frame = cv::Mat();
- camera.start(camera_name_to_index(s.camera_name), s.cam_fps, s.cam_res_x, s.cam_res_y);
+ if (!camera.start(camera_name_to_index(s.camera_name), s.cam_fps, s.cam_res_x, s.cam_res_y))
+ qDebug() << "can't start camera" << s.camera_name;
qDebug() << "pt: done applying settings";
}