projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c203fd5
)
element-maker: improve plugin_init()
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 27 Apr 2011 13:51:55 +0000
(16:51 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Wed, 18 May 2011 07:31:38 +0000
(10:31 +0300)
Return the result of gst_element_register(). Use the TYPE macro instead of the
_get_type() function.
tools/gst-element-maker
patch
|
blob
|
history
diff --git
a/tools/gst-element-maker
b/tools/gst-element-maker
index
4255aa8
..
bd4cc98
100755
(executable)
--- a/
tools/gst-element-maker
+++ b/
tools/gst-element-maker
@@
-239,10
+239,8
@@
static gboolean
plugin_init (GstPlugin * plugin)
{
- gst_element_register (plugin, "replace", GST_RANK_NONE,
- gst_replace_get_type ());
-
- return TRUE;
+ return gst_element_register (plugin, "replace", GST_RANK_NONE,
+ GST_TYPE_REPLACE);
}
#ifndef VERSION