summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-10 22:23:59 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-10 22:23:59 +0100
commitffb0893dc2ccf937c8414f4df88426308c822324 (patch)
tree83e93a6e703cbf65a3dd70bef869df2df012bad9 /ftnoir_tracker_aruco
parent340194f133dfd6988188234c3be14bf5ec53923e (diff)
fix possible race
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r--ftnoir_tracker_aruco/ar_video_widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_aruco/ar_video_widget.cpp b/ftnoir_tracker_aruco/ar_video_widget.cpp
index 645ea3a9..c452a638 100644
--- a/ftnoir_tracker_aruco/ar_video_widget.cpp
+++ b/ftnoir_tracker_aruco/ar_video_widget.cpp
@@ -14,7 +14,7 @@ using namespace std;
void ArucoVideoWidget::update_image(const cv::Mat& frame)
{
QMutexLocker foo(&mtx);
- _frame = frame;
+ _frame = frame.clone();
}
void ArucoVideoWidget::update_and_repaint()