From f76feeb6321d0ec205049d3543f1e7949c294f99 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 27 Apr 2011 16:51:55 +0300 Subject: [PATCH] element-maker: improve plugin_init() Return the result of gst_element_register(). Use the TYPE macro instead of the _get_type() function. --- tools/gst-element-maker | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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