mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
1853e455ac
commit
07dffe9e5b
1 changed files with 4 additions and 1 deletions
|
@ -1313,7 +1313,10 @@ gst_gl_context_create_thread (GstGLContext * context)
|
||||||
g_free (display_api_s);
|
g_free (display_api_s);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (context, "Filling info");
|
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;
|
context->priv->alive = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue