From 612479b4116cb6adea9f12fc0c259d61e4273bbe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 30 Dec 2016 11:34:40 +0100 Subject: tracker/pt: fix warn_unused_result --- tracker-pt/ftnoir_tracker_pt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tracker-pt/ftnoir_tracker_pt.cpp') 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"; } -- cgit v1.2.3