diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 06:45:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 06:50:47 +0200 |
commit | 1b00f064f5f10692af63d786bb9d27ea1356d946 (patch) | |
tree | fe19301feda6f5d57fae58302cc6a82f054ada6a /ftnoir_tracker_pt/ftnoir_tracker_pt.h | |
parent | 24538cf3a3a91481851618791b11be81437563e4 (diff) |
pt: preventing crashing on camera manipulation
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.h')
-rw-r--r-- | ftnoir_tracker_pt/ftnoir_tracker_pt.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |