Commit de03be44 authored by Olivier Crête's avatar Olivier Crête

gst: Use gst-full compatible registration functions

parent 79feb7f6
......@@ -44,12 +44,10 @@
static gboolean
plugin_init (GstPlugin *plugin)
{
if (!gst_element_register (plugin, "nicesrc",
GST_RANK_NONE, GST_TYPE_NICE_SRC))
if (!gst_element_register_nicesrc (plugin))
return FALSE;
if (!gst_element_register (plugin, "nicesink",
GST_RANK_NONE, GST_TYPE_NICE_SINK))
if (!gst_element_register_nicesink (plugin))
return FALSE;
return TRUE;
......
......@@ -537,3 +537,10 @@ gst_nice_sink_change_state (GstElement * element, GstStateChange transition)
return ret;
}
gboolean
gst_element_register_nicesink (GstPlugin * plugin)
{
return gst_element_register (plugin, "nicesink", GST_RANK_NONE,
GST_TYPE_NICE_SINK);
}
......@@ -88,6 +88,8 @@ struct _GstNiceSinkClass
GType gst_nice_sink_get_type (void);
gboolean gst_element_register_nicesink (GstPlugin * plugin);
G_END_DECLS
#endif
......@@ -449,3 +449,10 @@ gst_nice_src_change_state (GstElement * element, GstStateChange transition)
return ret;
}
gboolean
gst_element_register_nicesrc (GstPlugin * plugin)
{
return gst_element_register (plugin, "nicesrc", GST_RANK_NONE,
GST_TYPE_NICE_SRC);
}
......@@ -81,6 +81,8 @@ struct _GstNiceSrcClass
GType gst_nice_src_get_type (void);
gboolean gst_element_register_nicesrc (GstPlugin * plugin);
G_END_DECLS
#endif // _GSTNICESRC_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment