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_dialog.cpp | |
parent | 24538cf3a3a91481851618791b11be81437563e4 (diff) |
pt: preventing crashing on camera manipulation
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp')
-rw-r--r-- | ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp index 07ee4f1b..12d108ac 100644 --- a/ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp +++ b/ftnoir_tracker_pt/ftnoir_tracker_pt_dialog.cpp @@ -106,13 +106,12 @@ void TrackerDialog_PT::startstop_trans_calib(bool start) void TrackerDialog_PT::poll_tracker_info() { - if (tracker) + CamInfo info; + if (tracker && tracker->get_cam_info(&info)) { QString to_print; - CamInfo info; { // display caminfo - tracker->get_cam_info(&info); to_print = QString::number(info.res_x)+"x"+QString::number(info.res_y)+" @ "+QString::number(info.fps)+" FPS"; } ui.caminfo_label->setText(to_print); |