[266/906] secure close when clicking on the cross
authorJulien Isorce <julien.isorce@gmail.com>
Thu, 13 Nov 2008 01:05:33 +0000 (02:05 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:20 +0000 (19:31 +0000)
gst-libs/gst/gl/gstgldisplay.c

index 42e2d85..63e0cc5 100644 (file)
@@ -449,6 +449,8 @@ gst_gl_display_thread_create_context (GstGLDisplay *display)
 
   GST_INFO ("loop exited\n");
 
+  gst_gl_display_lock (display);
+
   display->isAlive = FALSE;
 
   gst_gl_display_thread_destroy_context (display);
@@ -457,6 +459,8 @@ gst_gl_display_thread_create_context (GstGLDisplay *display)
 
   display->gl_window = NULL;
 
+  gst_gl_display_unlock (display);
+
   return NULL;
 }