aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef2011-01-02 21:38:01 -0600
committerDavid Schleef2011-01-02 21:38:01 -0600
commit36a3688015ed093e29ab2d6e67827bd475712ea0 (patch)
tree91644127808e4222c72bcde2bc415293c6522260 /tools
parent73d85fa438b92316856071902a26f81f9c0ca733 (diff)
downloadgst-plugins-bad0-10-36a3688015ed093e29ab2d6e67827bd475712ea0.tar.gz
gst-plugins-bad0-10-36a3688015ed093e29ab2d6e67827bd475712ea0.tar.xz
gst-plugins-bad0-10-36a3688015ed093e29ab2d6e67827bd475712ea0.zip
element-maker: Add debug category
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gst-element-maker11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/gst-element-maker b/tools/gst-element-maker
index fa56baf9e..aa899b652 100755
--- a/tools/gst-element-maker
+++ b/tools/gst-element-maker
@@ -133,6 +133,9 @@ grep -A 10000 '^% includes' $templatedir/$class | tail -n +2|grep -m 1 -B 10000
133cat <<EOF 133cat <<EOF
134#include "gstreplace.h" 134#include "gstreplace.h"
135 135
136GST_DEBUG_CATEGORY_STATIC (gst_replace_debug);
137#define GST_CAT_DEFAULT gst_replace_debug
138
136/* prototypes */ 139/* prototypes */
137 140
138EOF 141EOF
@@ -165,8 +168,12 @@ cat <<EOF
165 168
166/* class initialization */ 169/* class initialization */
167 170
168GST_BOILERPLATE (GstReplace, gst_replace, GstBaseReplace, 171#define DEBUG_INIT(bla) \\
169 GST_TYPE_BASE_REPLACE); 172 GST_DEBUG_CATEGORY_INIT (gst_replace_debug, "replace", 0, \\
173 "debug category for replace element");
174
175GST_BOILERPLATE_FULL (GstReplace, gst_replace, GstBaseReplace,
176 GST_TYPE_BASE_REPLACE, DEBUG_INIT);
170 177
171static void 178static void
172gst_replace_base_init (gpointer g_class) 179gst_replace_base_init (gpointer g_class)