dshowsrcwrapper: add debug category for general dshowsrcwrapper
authorJoshua M. Doe <oss@nvl.army.mil>
Thu, 11 Oct 2018 15:17:11 +0000 (11:17 -0400)
committerNirbheek Chauhan <nirbheek@centricular.com>
Sat, 27 Oct 2018 20:58:30 +0000 (21:58 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=797338

sys/dshowsrcwrapper/gstdshow.cpp
sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp

index 421e49c..c1eed85 100644 (file)
@@ -24,6 +24,9 @@
 #include "gstdshow.h"
 #include "gstdshowfakesink.h"
 
+GST_DEBUG_CATEGORY_EXTERN (dshowsrcwrapper_debug);
+#define GST_CAT_DEFAULT dshowsrcwrapper_debug
+
 const GUID MEDIASUBTYPE_I420
     = { 0x30323449, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B,
     0x71}
index 3871476..88a57d9 100644 (file)
@@ -26,6 +26,9 @@
 #include "gstdshowaudiosrc.h"
 #include "gstdshowvideosrc.h"
 
+GST_DEBUG_CATEGORY (dshowsrcwrapper_debug);
+#define GST_CAT_DEFAULT dshowsrcwrapper_debug
+
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
@@ -35,6 +38,9 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, GST_TYPE_DSHOWVIDEOSRC))
     return FALSE;
 
+  GST_DEBUG_CATEGORY_INIT (dshowsrcwrapper_debug, "dshowsrcwrapper", 0,
+      "DirectShow source wrapper");
+
   return TRUE;
 }