From a9106ccce97f60658e9174a8f59601bafe26fba4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 24 Apr 2013 14:25:21 +1000 Subject: [PATCH] [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. --- gst-libs/gst/gl/gstgldisplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 08e1ec9..92fc3ba 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -1225,6 +1225,8 @@ gst_gl_display_create_context (GstGLDisplay * display, g_cond_wait (&display->priv->cond_create_context, &display->mutex); + display->context_created = TRUE; + GST_INFO ("gl thread created"); } -- 2.7.4