mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +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)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
|
||||||
gst_element_register (plugin, "replace", GST_RANK_NONE,
|
return gst_element_register (plugin, "replace", GST_RANK_NONE,
|
||||||
gst_replace_get_type ());
|
GST_TYPE_REPLACE);
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
|
|
Loading…
Reference in a new issue