diff --git a/ext/qt/gstqsgtexture.cc b/ext/qt/gstqsgtexture.cc index 13208c05f2..85747f260d 100644 --- a/ext/qt/gstqsgtexture.cc +++ b/ext/qt/gstqsgtexture.cc @@ -45,6 +45,7 @@ GstQSGTexture::GstQSGTexture () gst_video_info_init (&this->v_info); this->buffer_ = NULL; + this->qt_context_ = NULL; this->sync_buffer_ = gst_buffer_new (); } @@ -87,6 +88,9 @@ GstQSGTexture::bind () GstMemory *mem; guint tex_id; + if (!this->qt_context_) + return; + gst_gl_context_activate (this->qt_context_, TRUE); if (!this->buffer_)