diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 4255aa8c28..bd4cc98704 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