summaryrefslogtreecommitdiffhomepage
path: root/video/video-widget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/video-widget.hpp')
-rw-r--r--video/video-widget.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/video-widget.hpp b/video/video-widget.hpp
index 4f54b2b9..d70ee443 100644
--- a/video/video-widget.hpp
+++ b/video/video-widget.hpp
@@ -18,7 +18,7 @@
#include <QImage>
#include <QTimer>
-#include <QMutex>
+#include <QRecursiveMutex>
struct OTR_VIDEO_EXPORT video_widget : QWidget
{
@@ -32,7 +32,7 @@ struct OTR_VIDEO_EXPORT video_widget : QWidget
bool fresh() const;
protected:
- mutable QMutex mtx { QMutex::NonRecursive };
+ mutable QRecursiveMutex mtx;
QImage texture;
std::vector<unsigned char> vec;
void set_fresh(bool x);