glutils: only attempt getting the app context when we don't already have a display

avoids querying/messaging the world on each frame
This commit is contained in:
Matthew Waters 2014-11-06 18:43:01 +11:00 committed by Tim-Philipp Müller
parent e2f61d20a2
commit d738b78229

View file

@ -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);