devicemonitor: add debug category
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 21 Jun 2019 13:38:15 +0000 (15:38 +0200)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Fri, 21 Jun 2019 13:38:58 +0000 (13:38 +0000)
gst/gstdevicemonitor.c

index 088eb4c..331fac7 100644 (file)
@@ -98,6 +98,9 @@
 #include "gst_private.h"
 #include "gstdevicemonitor.h"
 
+GST_DEBUG_CATEGORY_STATIC (devicemonitor_debug);
+#define GST_CAT_DEFAULT devicemonitor_debug
+
 struct _GstDeviceMonitorPrivate
 {
   gboolean started;
@@ -187,6 +190,8 @@ gst_device_monitor_class_init (GstDeviceMonitorClass * klass)
   object_class->set_property = gst_device_monitor_set_property;
   object_class->dispose = gst_device_monitor_dispose;
 
+  GST_DEBUG_CATEGORY_INIT (devicemonitor_debug, "devicemonitor", 0,
+      "debugging info for the device monitor");
   g_object_class_install_property (object_class, PROP_SHOW_ALL,
       g_param_spec_boolean ("show-all", "Show All",
           "Show all devices, even those from hidden providers",