From 77fda13b2957783ab656f2b76417224823191942 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Oct 2014 07:04:26 +0200 Subject: nix PT opening zeroth camera in case >0th camera used Reported-by: @brokenhands Issue: #79 Breakage-of: pt-tracker --- ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ftnoir_tracker_pt') 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(); } -- cgit v1.2.3