From d71ab51c9f33bd3c407fc786f760d252378131c7 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 08e1ec9083..92fc3ba10d 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"); }