gldebug: add a specific category for the debug spam from the driver
authorMatthew Waters <matthew@centricular.com>
Fri, 8 Jan 2016 07:38:46 +0000 (18:38 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 13 Jan 2016 01:00:03 +0000 (12:00 +1100)
gst-libs/gst/gl/gstgldebug.c

index 77bfcd8..a228e26 100644 (file)
@@ -82,6 +82,8 @@
 
 #if !defined(GST_DISABLE_GST_DEBUG)
 GST_DEBUG_CATEGORY_STATIC (gst_performance);
+#define GST_CAT_DEFAULT gst_gl_debug
+GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
 
 static void
 _init_debug (void)
@@ -90,6 +92,7 @@ _init_debug (void)
 
   if (g_once_init_enter (&_init)) {
     GST_DEBUG_CATEGORY_GET (gst_performance, "GST_PERFORMANCE");
+    GST_DEBUG_CATEGORY_INIT (gst_gl_debug, "gldebug", 0, "OpenGL Debugging");
     g_once_init_leave (&_init, 1);
   }
 }