diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 20:39:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 20:39:43 +0100 |
commit | 946252efabf79792aac655914276aab3fad36ef2 (patch) | |
tree | 1471b4a48f9f4f15eded8b20f71b965cac5bce78 /cv/video-widget.hpp | |
parent | d90d57a85d81bc16e14310e41c820f47e110e484 (diff) |
cv/video-widget: fix logic error
Also try not to poke size() outside UI thread.
Diffstat (limited to 'cv/video-widget.hpp')
-rw-r--r-- | cv/video-widget.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cv/video-widget.hpp b/cv/video-widget.hpp index 3e328977..3b29ffc6 100644 --- a/cv/video-widget.hpp +++ b/cv/video-widget.hpp @@ -17,6 +17,7 @@ #include <QTimer> #include <QMutex> #include <QMutexLocker> +#include <QSize> #include <QDebug> class cv_video_widget final : public QWidget @@ -32,6 +33,7 @@ private: QMutex mtx; QImage texture; QTimer timer; + QSize preview_size; cv::Mat _frame, _frame2, _frame3; bool freshp; }; |