summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-06 00:41:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-06 00:41:59 +0100
commit0f577dbe8adb8f7e210241c6bee0be73349f8d45 (patch)
treefaf4fcdb5d13b55a75f72b6318922edb26a14b86 /tracker-aruco
parent14550c0f9070bc108c865736364349b3e8d1f995 (diff)
tracker/aruco, tracker/pt: sleep before releasing camera
Really fast toggling tracking crashed with my PS3 Eye.
Diffstat (limited to 'tracker-aruco')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 2b38bb2f..1da5b8df 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -43,6 +43,8 @@ Tracker::~Tracker()
delete videoWidget;
if(layout)
delete layout;
+ // fast start/stop causes breakage
+ portable::sleep(1000);
camera.release();
}