From 37f3a0362625054840ee1c137ec7e8e90288000a Mon Sep 17 00:00:00 2001 From: Stéphane Cerveau Date: Thu, 10 Dec 2020 15:02:12 +0100 Subject: gst-plugin: allow per feature registration Split plugin into features including typefind functions 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: --- gst-plugin/src/gstplugin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst-plugin/src/gstplugin.c') diff --git a/gst-plugin/src/gstplugin.c b/gst-plugin/src/gstplugin.c index 3ee7e72..cb6305f 100644 --- a/gst-plugin/src/gstplugin.c +++ b/gst-plugin/src/gstplugin.c @@ -99,6 +99,8 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", #define gst_plugin_template_parent_class parent_class G_DEFINE_TYPE (GstPluginTemplate, gst_plugin_template, GST_TYPE_ELEMENT); +GST_ELEMENT_REGISTER_DEFINE (myfirstplugin, "myfirstplugin", GST_RANK_NONE, + GST_TYPE_PLUGIN); static void gst_plugin_template_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); @@ -261,8 +263,7 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_plugin_template_debug, "plugin", 0, "Template plugin"); - return gst_element_register (plugin, "plugin", GST_RANK_NONE, - GST_TYPE_PLUGIN_TEMPLATE); + return GST_ELEMENT_REGISTER (myfirstplugin, plugin); } /* PACKAGE: this is usually set by meson depending on some _INIT macro -- cgit v1.2.3