mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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:
parent
0424368cfc
commit
1438bf26ac
3 changed files with 7 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
|||
#include "ebml-read.h"
|
||||
#include "matroska-read-common.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (matroskareadcommon_debug);
|
||||
GST_DEBUG_CATEGORY (matroskareadcommon_debug);
|
||||
#define GST_CAT_DEFAULT matroskareadcommon_debug
|
||||
|
||||
#define DEBUG_ELEMENT_START(common, ebml, element) \
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN(matroskareadcommon_debug);
|
||||
|
||||
typedef enum {
|
||||
GST_MATROSKA_READ_STATE_START,
|
||||
GST_MATROSKA_READ_STATE_SEGMENT,
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "matroska-demux.h"
|
||||
#include "matroska-parse.h"
|
||||
#include "matroska-read-common.h"
|
||||
#include "matroska-mux.h"
|
||||
#include "matroska-ids.h"
|
||||
#include "webm-mux.h"
|
||||
|
@ -40,6 +41,9 @@ plugin_init (GstPlugin * plugin)
|
|||
|
||||
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_parse_plugin_init (plugin);
|
||||
ret &= gst_element_register (plugin, "matroskamux", GST_RANK_PRIMARY,
|
||||
|
|
Loading…
Reference in a new issue