gstqmlgl: correct validation for Qt GL context
authorDmitry Shusharin <pmdvsh@gmail.com>
Fri, 30 Jul 2021 10:20:25 +0000 (17:20 +0700)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 16 Aug 2021 11:25:58 +0000 (11:25 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1032>

ext/qt/gstqsgtexture.cc

index 1ba33b5..fb85dfb 100644 (file)
@@ -113,7 +113,7 @@ GstQSGTexture::bind ()
   guint tex_id;
   gboolean use_dummy_tex = TRUE;
 
-  if (!this->qt_context_)
+  if (!GST_IS_GL_CONTEXT(this->qt_context_))
     goto out;
 
   if (!this->buffer_)