diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-04-27 16:51:55 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2011-05-18 10:31:38 +0300 |
commit | f76feeb6321d0ec205049d3543f1e7949c294f99 (patch) | |
tree | 9ed621575e9b851b0b96c6d3f94d9099c0542aac | |
parent | c203fd52e8cbbf7d1c71b4497750f59525c74c22 (diff) |
element-maker: improve plugin_init()
Return the result of gst_element_register(). Use the TYPE macro instead of the
_get_type() function.
-rwxr-xr-x | tools/gst-element-maker | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 4255aa8c2..bd4cc9870 100755 --- 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 |