diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-04-15 11:48:56 +0200 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2021-04-15 13:11:15 +0200 |
commit | 8b20bbc3ada705e0a319ed20e77409997e4dcb6b (patch) | |
tree | b1e3bb4933615e61bcfbe2e35b2c81da7adbc49d /gst-plugin/src/gstplugin.c | |
parent | 506d95cd8e7a94198d96ca48d359737eae4ab2d6 (diff) |
template: update make_element
update make_element script to work with
gstplugin.c and gsttransform.c
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-template/-/merge_requests/8>
Diffstat (limited to 'gst-plugin/src/gstplugin.c')
-rw-r--r-- | gst-plugin/src/gstplugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst-plugin/src/gstplugin.c b/gst-plugin/src/gstplugin.c index cb6305f..e90b63d 100644 --- a/gst-plugin/src/gstplugin.c +++ b/gst-plugin/src/gstplugin.c @@ -99,8 +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); +GST_ELEMENT_REGISTER_DEFINE (plugin_template, "plugin_template", GST_RANK_NONE, + GST_TYPE_PLUGIN_TEMPLATE); static void gst_plugin_template_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); @@ -263,7 +263,7 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_plugin_template_debug, "plugin", 0, "Template plugin"); - return GST_ELEMENT_REGISTER (myfirstplugin, plugin); + return GST_ELEMENT_REGISTER (plugin_template, plugin); } /* PACKAGE: this is usually set by meson depending on some _INIT macro @@ -282,6 +282,6 @@ plugin_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, plugin, - "Template plugin", + "plugin_template", plugin_init, PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) |