diff options
Diffstat (limited to 'ext/qt/qtitem.cc')
-rw-r--r-- | ext/qt/qtitem.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index 63060e163..5786c4110 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -183,14 +183,12 @@ QtGLVideoItem::updatePaintNode(QSGNode * oldNode, if (!texNode) { texNode = new QSGSimpleTextureNode (); texNode->setOwnsTexture (true); - } else { - tex = static_cast<GstQSGTexture *> (texNode->texture()); + texNode->setTexture (new GstQSGTexture ()); } - tex = new GstQSGTexture (); + tex = static_cast<GstQSGTexture *> (texNode->texture()); tex->setCaps (this->priv->caps); tex->setBuffer (this->priv->buffer); - texNode->setTexture (tex); if (this->priv->force_aspect_ratio) { src.w = this->priv->display_width; |