From 76f99f803be1652453c266c4f7dfc60cd25a76d3 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 22 Jun 2018 22:43:08 +1000 Subject: [PATCH] glcontextegl: only dump configs once --- gst-libs/gst/gl/egl/gstglcontext_egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index e5011033c8..e620a49e4d 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -409,8 +409,6 @@ gst_gl_context_egl_choose_config (GstGLContextEGL * egl, GstGLAPI gl_api, EGLint config_attrib[20]; EGLint egl_api = 0; - gst_gl_context_egl_dump_all_configs (egl); - create_context = gst_gl_check_extension ("EGL_KHR_create_context", egl->egl_exts); /* silence unused warnings */ @@ -602,6 +600,8 @@ gst_gl_context_egl_create_context (GstGLContext * context, egl->egl_exts = eglQueryString (egl->egl_display, EGL_EXTENSIONS); + gst_gl_context_egl_dump_all_configs (egl); + if (gl_api & (GST_GL_API_OPENGL | GST_GL_API_OPENGL3)) { GstGLAPI chosen_gl_api = 0; gint i;