mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 07:22:32 +00:00
[266/906] secure close when clicking on the cross
This commit is contained in:
parent
3f54cd9d94
commit
80efa96e52
1 changed files with 4 additions and 0 deletions
|
@ -449,6 +449,8 @@ gst_gl_display_thread_create_context (GstGLDisplay *display)
|
||||||
|
|
||||||
GST_INFO ("loop exited\n");
|
GST_INFO ("loop exited\n");
|
||||||
|
|
||||||
|
gst_gl_display_lock (display);
|
||||||
|
|
||||||
display->isAlive = FALSE;
|
display->isAlive = FALSE;
|
||||||
|
|
||||||
gst_gl_display_thread_destroy_context (display);
|
gst_gl_display_thread_destroy_context (display);
|
||||||
|
@ -457,6 +459,8 @@ gst_gl_display_thread_create_context (GstGLDisplay *display)
|
||||||
|
|
||||||
display->gl_window = NULL;
|
display->gl_window = NULL;
|
||||||
|
|
||||||
|
gst_gl_display_unlock (display);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue