From 942415dce0dea238c6b652c627934fd3a8983823 Mon Sep 17 00:00:00 2001 From: William Wedler Date: Thu, 11 Apr 2024 10:10:19 -0400 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc b/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc index 5e20c051c9..5bc7003e6e 100644 --- a/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc +++ b/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc @@ -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);