GNOME Bugzilla – Bug 770925
qmlglsink: check qt_context_ first in GstQSGTexture::bind()
Last modified: 2016-09-30 07:04:45 UTC
When start qmlglsink app, it will set NULL buffer to GstQSGTexture when updatePaintNode is not triggered by qt_item_set_buffer() at start. In which case, qt_context_ will be a random value and cause gst_gl_context_activate() fail or segment fault.
Created attachment 334874 [details] [review] check qt_context first
commit f15a3e3657e19c64ae9c377e3c7b11f0428976e4 Author: Haihua Hu <jared.hu@nxp.com> Date: Tue Sep 6 13:13:39 2016 +0800 qmlglsink: check qt_context_ first in GstQSGTexture::bind() 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