mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 10:38:27 +00:00
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>
This commit is contained in:
parent
0d125a2e8a
commit
c2b1368b03
2 changed files with 9 additions and 6 deletions
|
@ -109,7 +109,12 @@ static void oom_callback (void);
|
||||||
#define parent_class gst_neonhttp_src_parent_class
|
#define parent_class gst_neonhttp_src_parent_class
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstNeonhttpSrc, gst_neonhttp_src, GST_TYPE_PUSH_SRC,
|
G_DEFINE_TYPE_WITH_CODE (GstNeonhttpSrc, gst_neonhttp_src, GST_TYPE_PUSH_SRC,
|
||||||
G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER,
|
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
|
static void
|
||||||
gst_neonhttp_src_class_init (GstNeonhttpSrcClass * klass)
|
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
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (neonhttpsrc_debug, "neonhttpsrc", 0,
|
return GST_ELEMENT_REGISTER (neonhttpsrc, plugin);
|
||||||
"NEON HTTP src");
|
|
||||||
|
|
||||||
return gst_element_register (plugin, "neonhttpsrc", GST_RANK_NONE,
|
|
||||||
GST_TYPE_NEONHTTP_SRC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this is the structure that gst-register looks for
|
/* this is the structure that gst-register looks for
|
||||||
|
|
|
@ -84,6 +84,8 @@ struct _GstNeonhttpSrcClass {
|
||||||
|
|
||||||
GType gst_neonhttp_src_get_type (void);
|
GType gst_neonhttp_src_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (neonhttpsrc);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_NEONHTTP_SRC_H__ */
|
#endif /* __GST_NEONHTTP_SRC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue