summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/ftnoir_tracker_rs_worker.cpp
diff options
context:
space:
mode:
authorXavier Hallade <xavier.hallade@intel.com>2016-02-12 10:46:39 +0100
committerXavier Hallade <xavier.hallade@intel.com>2016-02-12 10:46:39 +0100
commit61a58641089b07b23910c94c677e262388039fb9 (patch)
tree48fa2bdae749e5cfb831b902924ae46942f5b862 /tracker-rs/ftnoir_tracker_rs_worker.cpp
parent652bdad279f7769523d3c6faa609448028907256 (diff)
tracker/rs: cleaned up preview widget setup and deletetion.
Diffstat (limited to 'tracker-rs/ftnoir_tracker_rs_worker.cpp')
-rw-r--r--tracker-rs/ftnoir_tracker_rs_worker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-rs/ftnoir_tracker_rs_worker.cpp b/tracker-rs/ftnoir_tracker_rs_worker.cpp
index 213f13ff..c0ea6749 100644
--- a/tracker-rs/ftnoir_tracker_rs_worker.cpp
+++ b/tracker-rs/ftnoir_tracker_rs_worker.cpp
@@ -11,7 +11,7 @@
RSTrackerWorkerThread::RSTrackerWorkerThread(): mPose{0,0,0,0,0,0}{
setObjectName("RSTrackerWorkerThread");
- mPreviewRawData = (uchar*)malloc(kPreviewStreamWidth*kPreviewStreamHeight);
+ mPreviewRawData = (uchar*)malloc(1*kPreviewStreamWidth*kPreviewStreamHeight);
memset(mPreviewRawData, 125, kPreviewStreamWidth*kPreviewStreamHeight); //start with a gray image.
}
@@ -33,7 +33,7 @@ void RSTrackerWorkerThread::run(){
QMutexLocker lock(&mMutex);
memcpy(mPose, pose, sizeof(pose));
}
- else if(retValue != -303){ // pose update failed. -303 is OK as it's only a timeout.
+ else if(retValue != -303){ // pose update failed and not because of a timeout (-303)
emit trackingHasFinished(retValue);
break;
}