[vlc-commits] [Git][videolan/vlc][master] qt: fix dereferencing address (1) with software and openvg modes
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Apr 4 05:40:30 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c968a7b3 by Fatih Uzunoglu at 2026-04-04T05:26:49+00:00
qt: fix dereferencing address (1) with software and openvg modes
This fixes crash when switching to the player page due to
c6762c24.
This change is akin to a8cd2d21.
- - - - -
1 changed file:
- modules/gui/qt/util/sgmanipulator.cpp
Changes:
=====================================
modules/gui/qt/util/sgmanipulator.cpp
=====================================
@@ -94,7 +94,9 @@ QSGNode *SGManipulator::updatePaintNode(QSGNode *, UpdatePaintNodeData *data)
{
bool materialChangeMade = false;
- if (const auto material = targetGeometryNode->material())
+ const auto material = targetGeometryNode->material();
+ // WARNING: Qt explicitly sets the material pointer to 1 with software and OpenVG modes:
+ if (material && material != reinterpret_cast<QSGMaterial*>(1))
{
if (m_blending)
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c968a7b3dbc438bf9d13e1ec1593bec85e0347d7
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c968a7b3dbc438bf9d13e1ec1593bec85e0347d7
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list