summaryrefslogtreecommitdiff
path: root/gst/cutter
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-16 17:11:26 +0100
committerStéphane Cerveau <scerveau@collabora.com>2021-03-29 12:45:23 +0200
commit30fc194540cba1a4978bc9921936f3a5c72407fc (patch)
treed1d0773a06da831c7d72f4af40e5694b16b414c0 /gst/cutter
parentebf9b886f75a6b81a1157fdc5d043e212705cc51 (diff)
downloadgstreamer-plugins-good-30fc194540cba1a4978bc9921936f3a5c72407fc.tar.gz
cutter: 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>
Diffstat (limited to 'gst/cutter')
-rw-r--r--gst/cutter/gstcutter.c6
-rw-r--r--gst/cutter/gstcutter.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c
index a8d5d449d..aa1424f5a 100644
--- a/gst/cutter/gstcutter.c
+++ b/gst/cutter/gstcutter.c
@@ -84,6 +84,7 @@ enum
#define gst_cutter_parent_class parent_class
G_DEFINE_TYPE (GstCutter, gst_cutter, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE (cutter, "cutter", GST_RANK_NONE, GST_TYPE_CUTTER);
static GstStateChangeReturn
gst_cutter_change_state (GstElement * element, GstStateChange transition);
@@ -487,10 +488,7 @@ gst_cutter_get_property (GObject * object, guint prop_id,
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "cutter", GST_RANK_NONE, GST_TYPE_CUTTER))
- return FALSE;
-
- return TRUE;
+ return GST_ELEMENT_REGISTER (cutter, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
diff --git a/gst/cutter/gstcutter.h b/gst/cutter/gstcutter.h
index 3875f8f12..31c135bef 100644
--- a/gst/cutter/gstcutter.h
+++ b/gst/cutter/gstcutter.h
@@ -75,6 +75,8 @@ struct _GstCutterClass
GType gst_cutter_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (cutter);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */