glcontext: propagate the version/extension failure upwards

Otherwise the calling code has no idea that the context failed to
be created fully.

https://bugzilla.gnome.org/show_bug.cgi?id=749284
This commit is contained in:
Matthew Waters 2015-05-13 23:55:28 +10:00
parent 1853e455ac
commit 07dffe9e5b

View file

@ -1313,7 +1313,10 @@ gst_gl_context_create_thread (GstGLContext * context)
g_free (display_api_s);
GST_DEBUG_OBJECT (context, "Filling info");
gst_gl_context_fill_info (context, error);
if (!gst_gl_context_fill_info (context, error)) {
g_assert (error == NULL || *error != NULL);
goto failure;
}
context->priv->alive = TRUE;