qmlglsink: check qt_context_ first in GstQSGTexture::bind()
authorHaihua Hu <jared.hu@nxp.com>
Tue, 6 Sep 2016 05:13:39 +0000 (13:13 +0800)
committerMatthew Waters <matthew@centricular.com>
Tue, 6 Sep 2016 14:15:02 +0000 (00:15 +1000)
commitf15a3e3657e19c64ae9c377e3c7b11f0428976e4
tree717015704bbf85ed22cd16a0d3d77eb8d7c5b908
parentf3b0b22c48d03727475942e82a0230013a7951ca
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
ext/qt/gstqsgtexture.cc