mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
shapewipe: 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-good/-/merge_requests/876>
This commit is contained in:
parent
cd8c3a2e53
commit
084c01dd5a
2 changed files with 6 additions and 8 deletions
|
@ -127,6 +127,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_shape_wipe_debug);
|
||||||
|
|
||||||
#define gst_shape_wipe_parent_class parent_class
|
#define gst_shape_wipe_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstShapeWipe, gst_shape_wipe, GST_TYPE_ELEMENT);
|
G_DEFINE_TYPE (GstShapeWipe, gst_shape_wipe, GST_TYPE_ELEMENT);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (shapewipe, "shapewipe", GST_RANK_NONE,
|
||||||
|
GST_TYPE_SHAPE_WIPE, GST_DEBUG_CATEGORY_INIT (gst_shape_wipe_debug,
|
||||||
|
"shapewipe", 0, "shapewipe element"););
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_shape_wipe_class_init (GstShapeWipeClass * klass)
|
gst_shape_wipe_class_init (GstShapeWipeClass * klass)
|
||||||
|
@ -1133,14 +1136,7 @@ gst_shape_wipe_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_shape_wipe_debug, "shapewipe", 0,
|
return GST_ELEMENT_REGISTER (shapewipe, plugin);
|
||||||
"shapewipe element");
|
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "shapewipe", GST_RANK_NONE,
|
|
||||||
GST_TYPE_SHAPE_WIPE))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -76,6 +76,8 @@ struct _GstShapeWipeClass
|
||||||
|
|
||||||
GType gst_shape_wipe_get_type (void);
|
GType gst_shape_wipe_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (shapewipe);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_SHAPE_WIPE_H__ */
|
#endif /* __GST_SHAPE_WIPE_H__ */
|
||||||
|
|
Loading…
Reference in a new issue