From 1bcb49bccee1bb73fe0648c93680b90de0e99098 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Tue, 29 May 2012 10:48:03 -0700 Subject: [PATCH] dshowdecwrapper: initialize debug properly --- sys/dshowdecwrapper/gstdshowdecwrapper.cpp | 6 ++++++ sys/dshowdecwrapper/gstdshowfakesrc.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sys/dshowdecwrapper/gstdshowdecwrapper.cpp b/sys/dshowdecwrapper/gstdshowdecwrapper.cpp index 84ee0bc2eb..536e6c7496 100644 --- a/sys/dshowdecwrapper/gstdshowdecwrapper.cpp +++ b/sys/dshowdecwrapper/gstdshowdecwrapper.cpp @@ -50,6 +50,9 @@ #include "gstdshowaudiodec.h" #include "gstdshowvideodec.h" +GST_DEBUG_CATEGORY (dshowdec_debug); +#define GST_CAT_DEFAULT dshowdec_debug + static gboolean plugin_init (GstPlugin * plugin) { @@ -59,6 +62,9 @@ plugin_init (GstPlugin * plugin) if (!dshow_vdec_register (plugin)) return FALSE; + GST_DEBUG_CATEGORY_INIT (dshowdec_debug, "dshowdec", 0, \ + "DirectShow decoder"); + return TRUE; } diff --git a/sys/dshowdecwrapper/gstdshowfakesrc.cpp b/sys/dshowdecwrapper/gstdshowfakesrc.cpp index 170e9ed89e..12a3f7720b 100644 --- a/sys/dshowdecwrapper/gstdshowfakesrc.cpp +++ b/sys/dshowdecwrapper/gstdshowfakesrc.cpp @@ -21,6 +21,9 @@ #include "gstdshowfakesrc.h" +GST_DEBUG_CATEGORY_EXTERN (dshowdec_debug); +#define GST_CAT_DEFAULT dshowdec_debug + const GUID CLSID_DecodeFakeSrc = { 0x039527db, 0x6b48, 0x45a7, { 0xab, 0xcf, 0x21, 0xab, 0xc5, 0x44, 0xbb, 0xb6} };