From d0befd39f0d63d6ec4bcb2fd651af14a4d3dbcf1 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 25 Jun 2013 18:34:13 -0300 Subject: [PATCH] dash: use same debug category for dashdemux and the mpd parser Makes debugging easier --- ext/dash/Makefile.am | 3 ++- ext/dash/gstdash_debug.h | 13 +++++++++++++ ext/dash/gstdashdemux.c | 3 ++- ext/dash/gstmpdparser.c | 3 +++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 ext/dash/gstdash_debug.h diff --git a/ext/dash/Makefile.am b/ext/dash/Makefile.am index f661ee44df..b6e544677e 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 0000000000..7d04a21e25 --- /dev/null +++ b/ext/dash/gstdash_debug.h @@ -0,0 +1,13 @@ +#ifndef __GST_DASH_DEBUG_H__ +#define __GST_DASH_DEBUG_H__ + +#include + +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 4530fd2b38..70f7aadac3 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -148,6 +148,7 @@ #include #include #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 19eab29c27..9ab4dd563e 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -28,6 +28,9 @@ #include #include #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,