From 1569264d1e139f20aee640beb9dcf7cb18421658 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Thu, 11 Oct 2018 11:17:11 -0400 Subject: [PATCH] dshowsrcwrapper: add debug category for general dshowsrcwrapper https://bugzilla.gnome.org/show_bug.cgi?id=797338 --- sys/dshowsrcwrapper/gstdshow.cpp | 3 +++ sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/sys/dshowsrcwrapper/gstdshow.cpp b/sys/dshowsrcwrapper/gstdshow.cpp index 421e49c..c1eed85 100644 --- a/sys/dshowsrcwrapper/gstdshow.cpp +++ b/sys/dshowsrcwrapper/gstdshow.cpp @@ -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} diff --git a/sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp b/sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp index 3871476..88a57d9 100644 --- a/sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp +++ b/sys/dshowsrcwrapper/gstdshowsrcwrapper.cpp @@ -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; } -- 2.7.4