diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 1a901c03b9..1b8a21c859 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -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 {