[266/906] secure close when clicking on the cross

This commit is contained in:
Julien Isorce 2008-11-13 02:05:33 +01:00 committed by Tim-Philipp Müller
parent 3f54cd9d94
commit 80efa96e52

View 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;
}