mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
qml6glsink: fix destruction of underlying texture
One should not directly delete the QRhiTexture instance. Instead it should be marked as to be deleted once QRhi::endFrame() is called (see: https://doc.qt.io/qt-6/qrhiresource.html#deleteLater ) Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3443 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6506>
This commit is contained in:
parent
b96072b810
commit
50bd2f2109
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ GstQSGTexture::GstQSGTexture(QRhiTexture * texture)
|
|||
GstQSGTexture::~GstQSGTexture()
|
||||
{
|
||||
if (m_texture) {
|
||||
delete m_texture;
|
||||
m_texture->deleteLater();
|
||||
m_texture = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue