mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
element-maker: Add debug category
This commit is contained in:
parent
73d85fa438
commit
36a3688015
1 changed files with 9 additions and 2 deletions
|
@ -133,6 +133,9 @@ grep -A 10000 '^% includes' $templatedir/$class | tail -n +2|grep -m 1 -B 10000
|
|||
cat <<EOF
|
||||
#include "gstreplace.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_replace_debug);
|
||||
#define GST_CAT_DEFAULT gst_replace_debug
|
||||
|
||||
/* prototypes */
|
||||
|
||||
EOF
|
||||
|
@ -165,8 +168,12 @@ cat <<EOF
|
|||
|
||||
/* class initialization */
|
||||
|
||||
GST_BOILERPLATE (GstReplace, gst_replace, GstBaseReplace,
|
||||
GST_TYPE_BASE_REPLACE);
|
||||
#define DEBUG_INIT(bla) \\
|
||||
GST_DEBUG_CATEGORY_INIT (gst_replace_debug, "replace", 0, \\
|
||||
"debug category for replace element");
|
||||
|
||||
GST_BOILERPLATE_FULL (GstReplace, gst_replace, GstBaseReplace,
|
||||
GST_TYPE_BASE_REPLACE, DEBUG_INIT);
|
||||
|
||||
static void
|
||||
gst_replace_base_init (gpointer g_class)
|
||||
|
|
Loading…
Reference in a new issue