diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-02-14 11:47:14 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-02-26 16:23:11 +0530 |
commit | 28874e15ff286a1486ea4f6fc2aadfe70556db0b (patch) | |
tree | e86eea8dd65e51829d798d01320c90b7868b89ee | |
parent | 14b2d6b27a783a3550e1e99e7791744c0dc3031f (diff) |
wasapi: Set a default category for util functions
Without this, they all go to the default category where they can be
missed
-rw-r--r-- | sys/wasapi/gstwasapi.c | 5 | ||||
-rw-r--r-- | sys/wasapi/gstwasapiutil.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/wasapi/gstwasapi.c b/sys/wasapi/gstwasapi.c index 1e50c4fb8..666979744 100644 --- a/sys/wasapi/gstwasapi.c +++ b/sys/wasapi/gstwasapi.c @@ -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; } diff --git a/sys/wasapi/gstwasapiutil.c b/sys/wasapi/gstwasapiutil.c index 78c6f750d..986d2e37d 100644 --- a/sys/wasapi/gstwasapiutil.c +++ b/sys/wasapi/gstwasapiutil.c @@ -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> |