summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-07-05 12:52:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-07-05 12:52:42 +0200
commit81da94a9582776c99d8d8a2fc024df4c4f43d88c (patch)
tree1b1045fc3491bdeabb733331fbef89b551c81bd2 /tracker-easy
parent2a80f8073563a4ac95a5c051e5079c20d8b59a0c (diff)
Revert "tracker/easy: don't recreate preview all the time"
Diffstat (limited to 'tracker-easy')
-rw-r--r--tracker-easy/tracker-easy.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp
index 5c1c8684..59c01f68 100644
--- a/tracker-easy/tracker-easy.cpp
+++ b/tracker-easy/tracker-easy.cpp
@@ -584,6 +584,14 @@ namespace EasyTracker
iPreview = Preview(w, h);
}
}
+ else
+ {
+ // No preview, destroy preview pop-up
+ if (iDebug)
+ {
+ cv::destroyWindow("Preview");
+ }
+ }
dbgout << "Frame time:" << iTimer.elapsed_seconds();
//infout << "ProcessFrame - end";