diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-18 10:35:34 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-23 14:19:17 +0000 |
commit | c2b1368b03fdbd7d01842e6545cd2adab3d6a853 (patch) | |
tree | db297a1ad9ca85444d4f9c18db72a7b0ea3f8244 | |
parent | 0d125a2e8a0cd5b51fbc0cb7f299db6eeb08a051 (diff) | |
download | gstreamer-plugins-bad-c2b1368b03fdbd7d01842e6545cd2adab3d6a853.tar.gz |
neon: allow per feature registration
Split plugin into features including
dynamic types which can be indiviually
registered during a static build.
More details here:
https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038>
-rw-r--r-- | ext/neon/gstneonhttpsrc.c | 13 | ||||
-rw-r--r-- | ext/neon/gstneonhttpsrc.h | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 080216d5d..f965b08b1 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -109,7 +109,12 @@ static void oom_callback (void); #define parent_class gst_neonhttp_src_parent_class G_DEFINE_TYPE_WITH_CODE (GstNeonhttpSrc, gst_neonhttp_src, GST_TYPE_PUSH_SRC, G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER, - gst_neonhttp_src_uri_handler_init)); + gst_neonhttp_src_uri_handler_init); + GST_DEBUG_CATEGORY_INIT (neonhttpsrc_debug, "neonhttpsrc", 0, + "NEON HTTP src"); + ); +GST_ELEMENT_REGISTER_DEFINE (neonhttpsrc, "neonhttpsrc", GST_RANK_NONE, + GST_TYPE_NEONHTTP_SRC); static void gst_neonhttp_src_class_init (GstNeonhttpSrcClass * klass) @@ -1099,11 +1104,7 @@ gst_neonhttp_src_uri_handler_init (gpointer g_iface, gpointer iface_data) static gboolean plugin_init (GstPlugin * plugin) { - GST_DEBUG_CATEGORY_INIT (neonhttpsrc_debug, "neonhttpsrc", 0, - "NEON HTTP src"); - - return gst_element_register (plugin, "neonhttpsrc", GST_RANK_NONE, - GST_TYPE_NEONHTTP_SRC); + return GST_ELEMENT_REGISTER (neonhttpsrc, plugin); } /* this is the structure that gst-register looks for diff --git a/ext/neon/gstneonhttpsrc.h b/ext/neon/gstneonhttpsrc.h index 5a61433d3..a5dd2dfd2 100644 --- a/ext/neon/gstneonhttpsrc.h +++ b/ext/neon/gstneonhttpsrc.h @@ -84,6 +84,8 @@ struct _GstNeonhttpSrcClass { GType gst_neonhttp_src_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (neonhttpsrc); + G_END_DECLS #endif /* __GST_NEONHTTP_SRC_H__ */ |