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
parent 1800ffb34a
commit 775ba4ff0b

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