dash: use same debug category for dashdemux and the mpd parser

Makes debugging easier
This commit is contained in:
Thiago Santos 2013-06-25 18:34:13 -03:00
parent 4f17112392
commit d0befd39f0
4 changed files with 20 additions and 2 deletions

View file

@ -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)

13
ext/dash/gstdash_debug.h Normal file
View file

@ -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__ */

View file

@ -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

View file

@ -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,