mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
wasapi: Set a default category for util functions
Without this, they all go to the default category where they can be missed
This commit is contained in:
parent
14b2d6b27a
commit
28874e15ff
2 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,8 @@
|
||||||
#include "gstwasapisrc.h"
|
#include "gstwasapisrc.h"
|
||||||
#include "gstwasapidevice.h"
|
#include "gstwasapidevice.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY (gst_wasapi_debug);
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
@ -40,6 +42,9 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_RANK_PRIMARY, GST_TYPE_WASAPI_DEVICE_PROVIDER))
|
GST_RANK_PRIMARY, GST_TYPE_WASAPI_DEVICE_PROVIDER))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_wasapi_debug, "wasapi",
|
||||||
|
0, "Windows audio session API generic");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
#include "gstwasapiutil.h"
|
#include "gstwasapiutil.h"
|
||||||
#include "gstwasapidevice.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 */
|
/* This was only added to MinGW in ~2015 and our Cerbero toolchain is too old */
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <functiondiscoverykeys_devpkey.h>
|
#include <functiondiscoverykeys_devpkey.h>
|
||||||
|
|
Loading…
Reference in a new issue