Merge branch 'Talkless-main-patch-02178' into 'main'

qt: fix segmentation fault in QtGLVideoItem::onSceneGraphInitialized

Closes #2421

See merge request gstreamer/gstreamer!6244
This commit is contained in:
Vincas Dargis 2024-05-03 20:38:45 +00:00
commit fb5c4912b1

View file

@ -706,7 +706,7 @@ QtGLVideoItemInterface::setBuffer (GstBuffer * buffer)
void
QtGLVideoItem::onSceneGraphInitialized ()
{
if (this->window() == NULL)
if (this->priv == NULL || this->window() == NULL)
return;
GST_DEBUG ("%p scene graph initialization with Qt GL context %p", this,