modplug: 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-bad/-/merge_requests/2038>
This commit is contained in:
Stéphane Cerveau 2021-02-18 10:10:16 +01:00 committed by GStreamer Marge Bot
parent ce5100ef87
commit 6f8aaf807e
2 changed files with 5 additions and 2 deletions

View file

@ -129,6 +129,8 @@ static void gst_modplug_loop (GstModPlug * element);
#define parent_class gst_modplug_parent_class
G_DEFINE_TYPE (GstModPlug, gst_modplug, GST_TYPE_ELEMENT);
GST_ELEMENT_REGISTER_DEFINE (modplug, "modplug",
GST_RANK_PRIMARY, GST_TYPE_MODPLUG);
static void
gst_modplug_class_init (GstModPlugClass * klass)
@ -902,8 +904,7 @@ gst_modplug_get_property (GObject * object, guint id, GValue * value,
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "modplug",
GST_RANK_PRIMARY, GST_TYPE_MODPLUG);
return GST_ELEMENT_REGISTER (modplug, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -84,6 +84,8 @@ typedef struct _GstModPlugClass GstModPlugClass;
GType gst_modplug_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (modplug);
G_END_DECLS
#endif /* __GST_MODPLUG_H__ */