diff options
author | David Schleef | 2011-01-02 21:38:01 -0600 |
---|---|---|
committer | David Schleef | 2011-01-02 21:38:01 -0600 |
commit | 36a3688015ed093e29ab2d6e67827bd475712ea0 (patch) | |
tree | 91644127808e4222c72bcde2bc415293c6522260 /tools | |
parent | 73d85fa438b92316856071902a26f81f9c0ca733 (diff) | |
download | gst-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-x | tools/gst-element-maker | 11 |
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 | |||
133 | cat <<EOF | 133 | cat <<EOF |
134 | #include "gstreplace.h" | 134 | #include "gstreplace.h" |
135 | 135 | ||
136 | GST_DEBUG_CATEGORY_STATIC (gst_replace_debug); | ||
137 | #define GST_CAT_DEFAULT gst_replace_debug | ||
138 | |||
136 | /* prototypes */ | 139 | /* prototypes */ |
137 | 140 | ||
138 | EOF | 141 | EOF |
@@ -165,8 +168,12 @@ cat <<EOF | |||
165 | 168 | ||
166 | /* class initialization */ | 169 | /* class initialization */ |
167 | 170 | ||
168 | GST_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 | |||
175 | GST_BOILERPLATE_FULL (GstReplace, gst_replace, GstBaseReplace, | ||
176 | GST_TYPE_BASE_REPLACE, DEBUG_INIT); | ||
170 | 177 | ||
171 | static void | 178 | static void |
172 | gst_replace_base_init (gpointer g_class) | 179 | gst_replace_base_init (gpointer g_class) |