mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
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:
parent
14521a89cb
commit
3e3b573503
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ gst_gl_context_create_thread (GstGLContext * context)
|
||||||
if (gl->GetIntegerv && gl->GetStringi)
|
if (gl->GetIntegerv && gl->GetStringi)
|
||||||
ext_g_str = _build_extension_string (context);
|
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,
|
_gst_gl_feature_check_ext_functions (context, gl_major, gl_minor,
|
||||||
ext_g_str->str);
|
ext_g_str->str);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue