fix: qml6glsink: Notify that the returned QSGNode node has changes

Sets the QSGNode::DirtyMaterial bit when a new buffer is used for the material's texture

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3469
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6609>
This commit is contained in:
William Wedler 2024-04-11 10:10:19 -04:00 committed by Will
parent 687b3a2027
commit 942415dce0

View file

@ -325,6 +325,8 @@ Qt6GLVideoItem::updatePaintNode(QSGNode * oldNode,
GST_TRACE ("old buffer %p was not bound yet, unreffing", old_buffer);
gst_buffer_unref (old_buffer);
} else {
texNode->markDirty(QSGNode::DirtyMaterial);
GstBuffer *tmp_buffer;
GST_TRACE ("old buffer %p was bound, queueing up for later", old_buffer);