matroska: Register new debug category

Register the matroskareadcommon debug category when the
plugin is loaded to avoid assertion output when debug is turned on.
This commit is contained in:
Jan Schmidt 2011-08-03 22:50:05 +10:00
parent 0424368cfc
commit 1438bf26ac
3 changed files with 7 additions and 1 deletions

View file

@ -45,7 +45,7 @@
#include "ebml-read.h" #include "ebml-read.h"
#include "matroska-read-common.h" #include "matroska-read-common.h"
GST_DEBUG_CATEGORY_STATIC (matroskareadcommon_debug); GST_DEBUG_CATEGORY (matroskareadcommon_debug);
#define GST_CAT_DEFAULT matroskareadcommon_debug #define GST_CAT_DEFAULT matroskareadcommon_debug
#define DEBUG_ELEMENT_START(common, ebml, element) \ #define DEBUG_ELEMENT_START(common, ebml, element) \

View file

@ -31,6 +31,8 @@
G_BEGIN_DECLS G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN(matroskareadcommon_debug);
typedef enum { typedef enum {
GST_MATROSKA_READ_STATE_START, GST_MATROSKA_READ_STATE_START,
GST_MATROSKA_READ_STATE_SEGMENT, GST_MATROSKA_READ_STATE_SEGMENT,

View file

@ -25,6 +25,7 @@
#include "matroska-demux.h" #include "matroska-demux.h"
#include "matroska-parse.h" #include "matroska-parse.h"
#include "matroska-read-common.h"
#include "matroska-mux.h" #include "matroska-mux.h"
#include "matroska-ids.h" #include "matroska-ids.h"
#include "webm-mux.h" #include "webm-mux.h"
@ -40,6 +41,9 @@ plugin_init (GstPlugin * plugin)
gst_matroska_register_tags (); gst_matroska_register_tags ();
GST_DEBUG_CATEGORY_INIT (matroskareadcommon_debug, "matroskareadcommon", 0,
"Matroska demuxer/parser shared debug");
ret = gst_matroska_demux_plugin_init (plugin); ret = gst_matroska_demux_plugin_init (plugin);
ret &= gst_matroska_parse_plugin_init (plugin); ret &= gst_matroska_parse_plugin_init (plugin);
ret &= gst_element_register (plugin, "matroskamux", GST_RANK_PRIMARY, ret &= gst_element_register (plugin, "matroskamux", GST_RANK_PRIMARY,