mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
[895/906] context: call window_class->close last
We should destroy resources before closing the display connection Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725048
This commit is contained in:
parent
af033ae60a
commit
4b42da6141
1 changed files with 6 additions and 4 deletions
|
@ -792,17 +792,19 @@ gst_gl_context_create_thread (GstGLContext * context)
|
|||
|
||||
context->priv->alive = FALSE;
|
||||
|
||||
if (window_class->close) {
|
||||
window_class->close (context->window);
|
||||
}
|
||||
|
||||
context_class->activate (context, FALSE);
|
||||
|
||||
context_class->destroy_context (context);
|
||||
|
||||
/* User supplied callback */
|
||||
if (context->window->close)
|
||||
context->window->close (context->window->close_data);
|
||||
|
||||
/* window specific shutdown */
|
||||
if (window_class->close) {
|
||||
window_class->close (context->window);
|
||||
}
|
||||
|
||||
g_cond_signal (&context->priv->destroy_cond);
|
||||
|
||||
g_mutex_unlock (&context->priv->render_lock);
|
||||
|
|
Loading…
Reference in a new issue