summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2013-06-25 18:34:13 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2013-07-01 14:22:02 -0300
commitd0befd39f0d63d6ec4bcb2fd651af14a4d3dbcf1 (patch)
treee7a46ba947686b09bfc9e62aef5b0a33c3c265ac /ext
parent4f17112392d392e0cb841ea63382cef29154f33a (diff)
dash: use same debug category for dashdemux and the mpd parser
Makes debugging easier
Diffstat (limited to 'ext')
-rw-r--r--ext/dash/Makefile.am3
-rw-r--r--ext/dash/gstdash_debug.h13
-rw-r--r--ext/dash/gstdashdemux.c3
-rw-r--r--ext/dash/gstmpdparser.c3
4 files changed, 20 insertions, 2 deletions
diff --git a/ext/dash/Makefile.am b/ext/dash/Makefile.am
index f661ee44d..b6e544677 100644
--- a/ext/dash/Makefile.am
+++ b/ext/dash/Makefile.am
@@ -11,7 +11,8 @@ libgstdashdemux_la_SOURCES = \
noinst_HEADERS = \
gstmpdparser.h \
gstdashdemux.h \
- gstdownloadrate.h
+ gstdownloadrate.h \
+ gstdash_debug.h
# compiler and linker flags used to compile this plugin, set in configure.ac
libgstdashdemux_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_CFLAGS) $(LIBXML2_CFLAGS)
diff --git a/ext/dash/gstdash_debug.h b/ext/dash/gstdash_debug.h
new file mode 100644
index 000000000..7d04a21e2
--- /dev/null
+++ b/ext/dash/gstdash_debug.h
@@ -0,0 +1,13 @@
+#ifndef __GST_DASH_DEBUG_H__
+#define __GST_DASH_DEBUG_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+GST_DEBUG_CATEGORY_EXTERN (gst_dash_demux_debug);
+
+G_END_DECLS
+
+#endif /* __GST_DASH_DEBUG_H__ */
+
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index 4530fd2b3..70f7aadac 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -148,6 +148,7 @@
#include <inttypes.h>
#include <gst/base/gsttypefindhelper.h>
#include "gstdashdemux.h"
+#include "gstdash_debug.h"
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src_%u",
GST_PAD_SRC,
@@ -159,7 +160,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("application/dash+xml"));
-GST_DEBUG_CATEGORY_STATIC (gst_dash_demux_debug);
+GST_DEBUG_CATEGORY (gst_dash_demux_debug);
#define GST_CAT_DEFAULT gst_dash_demux_debug
enum
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index 19eab29c2..9ab4dd563 100644
--- a/ext/dash/gstmpdparser.c
+++ b/ext/dash/gstmpdparser.c
@@ -28,6 +28,9 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "gstmpdparser.h"
+#include "gstdash_debug.h"
+
+#define GST_CAT_DEFAULT gst_dash_demux_debug
/* Property parsing */
static gchar *gst_mpdparser_get_xml_prop_string (xmlNode * a_node,