From d738b78229828c5f8ca8e7e73593c28e8aa41af2 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 6 Nov 2014 18:43:01 +1100 Subject: [PATCH] glutils: only attempt getting the app context when we don't already have a display avoids querying/messaging the world on each frame --- gst-libs/gst/gl/gstglutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglutils.c b/gst-libs/gst/gl/gstglutils.c index 8258e87c3d..17961024c5 100644 --- a/gst-libs/gst/gl/gstglutils.c +++ b/gst-libs/gst/gl/gstglutils.c @@ -739,7 +739,7 @@ gst_gl_ensure_element_data (gpointer element, GstGLDisplay ** display_ptr, */ display = *display_ptr; if (gst_gl_display_found (element, display)) - goto get_gl_context; + goto done; gst_gl_display_context_query (element, display_ptr);