summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2022-04-12 10:30:36 +0200
committerAndy Shaw <andy.shaw@qt.io>2022-04-12 13:00:25 +0200
commitfd8b8107e333330d03d7b354503203a6c3ffe722 (patch)
tree0e3edfe7e50ddaffb4a84eac1d4b7e155c5bf6e1
parentba9a685a55cc76cbd8bd31cefbabdcb6677ed251 (diff)
Initialize m_material to nullptr
This ensures that on non macOS platforms that it will create a new material when required. Fixes: QTBUG-102316 Fixes: QTBUG-102413 Change-Id: Iaec9c7a5950f19bf0de046e4052234fe26472342 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/qtmultimediaquicktools/qsgvideonode_texture_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtmultimediaquicktools/qsgvideonode_texture_p.h b/src/qtmultimediaquicktools/qsgvideonode_texture_p.h
index fae3ba38b..d7fb0a4fd 100644
--- a/src/qtmultimediaquicktools/qsgvideonode_texture_p.h
+++ b/src/qtmultimediaquicktools/qsgvideonode_texture_p.h
@@ -74,7 +74,7 @@ public:
private:
QVideoSurfaceFormat m_format;
- QSGVideoMaterial_Texture *m_material;
+ QSGVideoMaterial_Texture *m_material = nullptr;
QVideoFrame m_frame;
};