summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/options-dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/options-dialog.cpp')
-rw-r--r--facetracknoir/options-dialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/facetracknoir/options-dialog.cpp b/facetracknoir/options-dialog.cpp
index 207c1afb..87b7b349 100644
--- a/facetracknoir/options-dialog.cpp
+++ b/facetracknoir/options-dialog.cpp
@@ -165,13 +165,12 @@ void OptionsDialog::startstop_trans_calib(bool start)
void OptionsDialog::poll_tracker_info()
{
auto tracker = get_pt();
- if (tracker)
+ CamInfo info;
+ if (tracker && tracker->get_cam_info(&info))
{
QString to_print;
// display caminfo
- CamInfo info;
- 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);