element-maker: improve plugin_init()

Return the result of gst_element_register(). Use the TYPE macro instead of the
_get_type() function.
This commit is contained in:
Stefan Kost 2011-04-27 16:51:55 +03:00
parent c203fd52e8
commit f76feeb632

View file

@ -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