From 8ede0678be4921abd03bca7d68afb52844c7b8fa Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Thu, 14 Feb 2008 14:22:57 +0000 Subject: gst/mpegtsparse/: Make sure the gstmpegdesc debug lines do not critical when GST_DEBUG is enabled and also actually o... Original commit message from CVS: * gst/mpegtsparse/gstmpegdesc.c: * gst/mpegtsparse/gstmpegdesc.h: * gst/mpegtsparse/mpegtsparse.c: Make sure the gstmpegdesc debug lines do not critical when GST_DEBUG is enabled and also actually output. Thanks to Alessandro Decina for spotting. Fixes #516448 --- gst/mpegtsparse/gstmpegdesc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gst/mpegtsparse/gstmpegdesc.c') diff --git a/gst/mpegtsparse/gstmpegdesc.c b/gst/mpegtsparse/gstmpegdesc.c index 9a4e1195..727b3e8a 100644 --- a/gst/mpegtsparse/gstmpegdesc.c +++ b/gst/mpegtsparse/gstmpegdesc.c @@ -35,8 +35,8 @@ #include "gstmpegdesc.h" -GST_DEBUG_CATEGORY (gstflumpegdesc_debug); -#define GST_CAT_DEFAULT (gstflumpegdesc_debug) +GST_DEBUG_CATEGORY (gstmpegtsdesc_debug); +#define GST_CAT_DEFAULT (gstmpegtsdesc_debug) void gst_mpeg_descriptor_free (GstMPEGDescriptor * desc) @@ -196,3 +196,10 @@ gst_mpeg_descriptor_nth (GstMPEGDescriptor * desc, guint i) } return NULL; } + +void +gst_mpegtsdesc_init_debug () +{ + GST_DEBUG_CATEGORY_INIT (gstmpegtsdesc_debug, "mpegtsdesc", 0, + "MPEG transport stream parser (descriptor)"); +} -- cgit v1.2.1