From 1b00f064f5f10692af63d786bb9d27ea1356d946 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Jul 2015 06:45:31 +0200 Subject: pt: preventing crashing on camera manipulation --- ftnoir_tracker_pt/ftnoir_tracker_pt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.h') diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.h b/ftnoir_tracker_pt/ftnoir_tracker_pt.h index 3291c7fc..f73d106b 100644 --- a/ftnoir_tracker_pt/ftnoir_tracker_pt.h +++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.h @@ -42,7 +42,7 @@ public: Affine pose() { QMutexLocker lock(&mutex); return point_tracker.pose(); } int get_n_points() { QMutexLocker lock(&mutex); return point_extractor.get_points().size(); } - void get_cam_info(CamInfo* info) { QMutexLocker lock(&camera_mtx); *info = camera.get_info(); } + bool get_cam_info(CamInfo* info) { QMutexLocker lock(&camera_mtx); return camera.get_info(*info); } public slots: void apply_settings(); protected: @@ -56,7 +56,7 @@ private: void set_command(Command command); void reset_command(Command command); - float get_focal_length(); + bool get_focal_length(float &ret); volatile int commands; -- cgit v1.2.3