wasapi: Set a default category for util functions
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 14 Feb 2018 06:17:14 +0000 (11:47 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 26 Feb 2018 10:53:11 +0000 (16:23 +0530)
Without this, they all go to the default category where they can be
missed

sys/wasapi/gstwasapi.c
sys/wasapi/gstwasapiutil.c

index 1e50c4f..6669797 100644 (file)
@@ -25,6 +25,8 @@
 #include "gstwasapisrc.h"
 #include "gstwasapidevice.h"
 
+GST_DEBUG_CATEGORY (gst_wasapi_debug);
+
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
@@ -40,6 +42,9 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_PRIMARY, GST_TYPE_WASAPI_DEVICE_PROVIDER))
     return FALSE;
 
+  GST_DEBUG_CATEGORY_INIT (gst_wasapi_debug, "wasapi",
+      0, "Windows audio session API generic");
+
   return TRUE;
 }
 
index 78c6f75..986d2e3 100644 (file)
@@ -25,6 +25,9 @@
 #include "gstwasapiutil.h"
 #include "gstwasapidevice.h"
 
+GST_DEBUG_CATEGORY_EXTERN (gst_wasapi_debug);
+#define GST_CAT_DEFAULT gst_wasapi_debug
+
 /* This was only added to MinGW in ~2015 and our Cerbero toolchain is too old */
 #if defined(_MSC_VER)
 #include <functiondiscoverykeys_devpkey.h>