mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
c203fd52e8
commit
f76feeb632
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue