summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-28 06:28:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-28 06:28:01 +0100
commit9f163b82da3ddb08d312d5e935d9792225ac2c69 (patch)
tree8800f9eb39bf268270121b00b34c4eff9e7c8cbe /tracker-pt
parentc90a9eac842ddfaef9a9a21d9a9df7eaeeba0b67 (diff)
tracker/pt: hold mutex over camera in dtor just to be 100% safe
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 33a40825..f3e9dc4b 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -31,7 +31,7 @@ Tracker_PT::~Tracker_PT()
set_command(ABORT);
wait();
- // fast start/stop causes breakage
+ QMutexLocker l(&camera_mtx);
camera.stop();
}