When start qmlglsink app, it will set NULL buffer to GstQSGTexture
in which case that qt_context_ will be a random value and cause
gst_gl_context_activate() fail.
https://bugzilla.gnome.org/show_bug.cgi?id=770925
gst_video_info_init (&this->v_info);
this->buffer_ = NULL;
+ this->qt_context_ = NULL;
this->sync_buffer_ = gst_buffer_new ();
}
GstMemory *mem;
guint tex_id;
+ if (!this->qt_context_)
+ return;
+
gst_gl_context_activate (this->qt_context_, TRUE);
if (!this->buffer_)