diff options
Diffstat (limited to 'cv')
-rw-r--r-- | cv/video-widget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp index e688732c..f4c16776 100644 --- a/cv/video-widget.cpp +++ b/cv/video-widget.cpp @@ -9,8 +9,9 @@ #include "video-widget.hpp" #include <opencv2/imgproc.hpp> -cv_video_widget::cv_video_widget(QWidget* parent) : - QWidget(parent), freshp(false) +cv_video_widget::cv_video_widget(QWidget* parent) : QWidget(parent), + mtx(QMutex::Recursive), + freshp(false) { connect(&timer, SIGNAL(timeout()), this, SLOT(update_and_repaint()), Qt::DirectConnection); timer.start(65); @@ -73,6 +74,6 @@ void cv_video_widget::update_and_repaint() if (freshp) { freshp = false; - update(); + repaint(); } } |