element-maker: improve plugin_init()
authorStefan Kost <ensonic@users.sf.net>
Wed, 27 Apr 2011 13:51:55 +0000 (16:51 +0300)
committerStefan 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

index 4255aa8..bd4cc98 100755 (executable)
@@ -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