diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2020-12-10 15:02:12 +0100 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2020-12-10 17:03:19 +0100 |
commit | 37f3a0362625054840ee1c137ec7e8e90288000a (patch) | |
tree | f69e1efb87910d3e25d8c1cd2e2637bde317d386 /gst-plugin/src/gstplugin.c | |
parent | d80bfacde35f027c6221516f9996c579df6d3ea7 (diff) |
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: <https://gitlab.freedesktop.org/gstreamer/gst-template/-/merge_requests/6>
Diffstat (limited to 'gst-plugin/src/gstplugin.c')
-rw-r--r-- | gst-plugin/src/gstplugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |