From 521ba8f65a63ef251ea8ffb26c6a3ea09e021cda Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 10 Jul 2023 22:45:49 +0900 Subject: [PATCH] qt6: Set sampler filtering method QQuickItem::smooth property doesn't seem to be propagated to newly created QSGSimpleTextureNode automatically. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2793 Part-of: --- subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc b/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc index a88d212fab..26d2385ba0 100644 --- a/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc +++ b/subprojects/gst-plugins-good/ext/qt6/qt6glitem.cc @@ -291,7 +291,10 @@ Qt6GLVideoItem::updatePaintNode(QSGNode * oldNode, gst_gl_context_activate (this->priv->other_context, TRUE); if (!texNode) { + bool is_smooth = this->smooth (); texNode = new GstQSG6OpenGLNode (this); + texNode->setFiltering (is_smooth ? QSGTexture::Filtering::Linear : + QSGTexture::Filtering::Nearest); this->priv->m_node = texNode; }