diff --git a/gst-libs/gst/gl/gstglfeature.c b/gst-libs/gst/gl/gstglfeature.c index 862fadc471..baf29b106a 100644 --- a/gst-libs/gst/gl/gstglfeature.c +++ b/gst-libs/gst/gl/gstglfeature.c @@ -27,6 +27,21 @@ #include "gl.h" #include "gstglfeature.h" +#define GST_CAT_DEFAULT gl_feature +GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); + +static void +_init_debug (void) +{ + static volatile gsize _init = 0; + + if (g_once_init_enter (&_init)) { + GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "glfeature", 0, + "OpenGL feature detection"); + g_once_init_leave (&_init, 1); + } +} + gboolean gst_gl_check_extension (const char *name, const gchar * ext) { @@ -250,6 +265,8 @@ _gst_gl_feature_check_ext_functions (GstGLContext * context, { int i; + _init_debug (); + for (i = 0; i < G_N_ELEMENTS (gst_gl_feature_ext_functions_data); i++) { _gst_gl_feature_check (context, "GL", gst_gl_feature_ext_functions_data + i, gl_major, gl_minor,