diff options
author | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2023-01-06 13:20:09 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2023-01-06 13:20:29 -0500 |
commit | de03be449b6c502e151a07e611bdedbc8fb35915 (patch) | |
tree | 4bc4d43d655b4b14f846bd4339329a2916f6fdd8 | |
parent | 79feb7f60b282b479bafc1a4ff4d92793d6ef11e (diff) | |
download | libnice-de03be449b6c502e151a07e611bdedbc8fb35915.tar.gz |
gst: Use gst-full compatible registration functions
-rw-r--r-- | gst/gstnice.c | 6 | ||||
-rw-r--r-- | gst/gstnicesink.c | 7 | ||||
-rw-r--r-- | gst/gstnicesink.h | 2 | ||||
-rw-r--r-- | gst/gstnicesrc.c | 7 | ||||
-rw-r--r-- | gst/gstnicesrc.h | 2 |
5 files changed, 20 insertions, 4 deletions
diff --git a/gst/gstnice.c b/gst/gstnice.c index b6f958f..6bc86d7 100644 --- a/gst/gstnice.c +++ b/gst/gstnice.c @@ -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; diff --git a/gst/gstnicesink.c b/gst/gstnicesink.c index 53bf5d1..ced4bd0 100644 --- a/gst/gstnicesink.c +++ b/gst/gstnicesink.c @@ -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); +} diff --git a/gst/gstnicesink.h b/gst/gstnicesink.h index 05a0e1f..b9e6e6c 100644 --- a/gst/gstnicesink.h +++ b/gst/gstnicesink.h @@ -88,6 +88,8 @@ struct _GstNiceSinkClass GType gst_nice_sink_get_type (void); +gboolean gst_element_register_nicesink (GstPlugin * plugin); + G_END_DECLS #endif diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c index 9aa3298..ed9b22b 100644 --- a/gst/gstnicesrc.c +++ b/gst/gstnicesrc.c @@ -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); +} diff --git a/gst/gstnicesrc.h b/gst/gstnicesrc.h index 5d3f554..9d00bfa 100644 --- a/gst/gstnicesrc.h +++ b/gst/gstnicesrc.h @@ -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 |