summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-29 10:48:03 -0700
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-05-31 12:47:01 +0200
commit1bcb49bccee1bb73fe0648c93680b90de0e99098 (patch)
tree21142880d1500eb13a788828841540c80e740d50 /sys
parent7ed605b375473898ebe4aac58ef6977e960cec5d (diff)
downloadgstreamer-plugins-bad-1bcb49bccee1bb73fe0648c93680b90de0e99098.tar.gz
dshowdecwrapper: initialize debug properly
Diffstat (limited to 'sys')
-rw-r--r--sys/dshowdecwrapper/gstdshowdecwrapper.cpp6
-rw-r--r--sys/dshowdecwrapper/gstdshowfakesrc.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/dshowdecwrapper/gstdshowdecwrapper.cpp b/sys/dshowdecwrapper/gstdshowdecwrapper.cpp
index 84ee0bc2e..536e6c749 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 170e9ed89..12a3f7720 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} };