summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-18 07:04:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-18 07:10:32 +0200
commit77fda13b2957783ab656f2b76417224823191942 (patch)
tree4ed18c6fc82b42888fdb846517bc423fc6c36002
parent493e6197ff19593c79483b7d34284b683656c242 (diff)
nix PT opening zeroth camera in case >0th camera used
Reported-by: @brokenhands Issue: #79 Breakage-of: pt-tracker
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index 8b77b681..cb4a6e21 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -55,8 +55,8 @@ void Tracker::run()
if (!log_file.open(QIODevice::WriteOnly | QIODevice::Text)) return;
QTextStream log_stream(&log_file);
#endif
- time.start();
- while((commands & ABORT) == 0)
+
+ while((commands & ABORT) == 0)
{
apply_inner();
const double dt = time.start() * 1e-9;
@@ -163,8 +163,9 @@ void Tracker::StartTracker(QFrame *parent_window)
video_layout->addWidget(video_widget);
video_frame->setLayout(video_layout);
video_widget->resize(video_frame->width(), video_frame->height());
+ apply(s);
+ apply_inner();
camera.start();
- apply(s);
start();
}