mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
openni2: 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
96a923fab2
commit
051ae23c2f
3 changed files with 5 additions and 13 deletions
|
@ -48,10 +48,7 @@
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
if (!gst_openni2src_plugin_init (plugin))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return GST_ELEMENT_REGISTER (openni2src, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -111,6 +111,8 @@ static GstFlowReturn openni2_read_gstbuffer (GstOpenni2Src * src,
|
|||
|
||||
#define parent_class gst_openni2_src_parent_class
|
||||
G_DEFINE_TYPE (GstOpenni2Src, gst_openni2_src, GST_TYPE_PUSH_SRC);
|
||||
GST_ELEMENT_REGISTER_DEFINE (openni2src, "openni2src", GST_RANK_NONE,
|
||||
GST_TYPE_OPENNI2_SRC);
|
||||
|
||||
static void
|
||||
gst_openni2_src_class_init (GstOpenni2SrcClass * klass)
|
||||
|
@ -512,14 +514,6 @@ gst_openni2src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
|
|||
return GST_BASE_SRC_CLASS (parent_class)->decide_allocation (bsrc, query);
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_openni2src_plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "openni2src", GST_RANK_NONE,
|
||||
GST_TYPE_OPENNI2_SRC);
|
||||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
openni2_initialise_library (void)
|
||||
{
|
||||
|
|
|
@ -75,7 +75,8 @@ struct _GstOpenni2SrcClass
|
|||
};
|
||||
|
||||
GType gst_openni2_src_get_type (void);
|
||||
gboolean gst_openni2src_plugin_init (GstPlugin * plugin);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (openni2src);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* __GST_OPENNI2_SRC_H__ */
|
||||
|
|
Loading…
Reference in a new issue