summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglcontext.c
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@collabora.co.uk>2014-03-24 12:04:08 +0000
committerJulien Isorce <julien.isorce@collabora.co.uk>2014-03-26 14:51:41 +0000
commit2893a70aa094574a765d8195941a2de010c1c89f (patch)
tree905e9a3ec643ae51362726c20637761bac0fbede /gst-libs/gst/gl/gstglcontext.c
parente26e3371a54e6b5c504666b85f1e5e8551436730 (diff)
downloadgstreamer-plugins-bad-2893a70aa094574a765d8195941a2de010c1c89f.tar.gz
gl: fix crash if _build_extension_string is not called
On GLES2 then (gl->GetIntegerv && gl->GetStringi) is false regression introduced by cc6df204e2f58fffda5cbe90f3450aeba95889c4 https://bugzilla.gnome.org/show_bug.cgi?id=703343
Diffstat (limited to 'gst-libs/gst/gl/gstglcontext.c')
-rw-r--r--gst-libs/gst/gl/gstglcontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c
index 1a901c03b..1b8a21c85 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 {