mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
[688/906] display: properly shutdown if we error after context creation
The _finalize() code checks to see if the context was created before attempting to destroy it. We never did say that we had created the context.
This commit is contained in:
parent
01518880fa
commit
d71ab51c9f
1 changed files with 2 additions and 0 deletions
|
@ -1225,6 +1225,8 @@ gst_gl_display_create_context (GstGLDisplay * display,
|
||||||
|
|
||||||
g_cond_wait (&display->priv->cond_create_context, &display->mutex);
|
g_cond_wait (&display->priv->cond_create_context, &display->mutex);
|
||||||
|
|
||||||
|
display->context_created = TRUE;
|
||||||
|
|
||||||
GST_INFO ("gl thread created");
|
GST_INFO ("gl thread created");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue