gl: fix crash if _build_extension_string is not called

On GLES2 then (gl->GetIntegerv && gl->GetStringi) is false
regression introduced by cc6df204e2

https://bugzilla.gnome.org/show_bug.cgi?id=703343
This commit is contained in:
Julien Isorce 2014-03-24 12:04:08 +00:00 committed by Tim-Philipp Müller
parent 14521a89cb
commit 3e3b573503

View file

@ -804,7 +804,7 @@ gst_gl_context_create_thread (GstGLContext * context)
if (gl->GetIntegerv && gl->GetStringi)
ext_g_str = _build_extension_string (context);
if (ext_g_str->len) {
if (ext_g_str && ext_g_str->len) {
_gst_gl_feature_check_ext_functions (context, gl_major, gl_minor,
ext_g_str->str);
} else {