openmpt: 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 15:42:44 +01:00 committed by GStreamer Marge Bot
parent c4a1de5510
commit 96a923fab2
3 changed files with 4 additions and 6 deletions

View file

@ -95,7 +95,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
G_DEFINE_TYPE (GstOpenMptDec, gst_openmpt_dec,
GST_TYPE_NONSTREAM_AUDIO_DECODER);
GST_ELEMENT_REGISTER_DEFINE (openmptdec, "openmptdec", GST_RANK_PRIMARY + 2,
gst_openmpt_dec_get_type ());
static void gst_openmpt_dec_finalize (GObject * object);

View file

@ -74,6 +74,7 @@ struct _GstOpenMptDecClass
GType gst_openmpt_dec_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (openmptdec);
G_END_DECLS

View file

@ -29,11 +29,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
gboolean ret = TRUE;
ret = ret
&& gst_element_register (plugin, "openmptdec", GST_RANK_PRIMARY + 2,
gst_openmpt_dec_get_type ());
return ret;
return GST_ELEMENT_REGISTER (openmptdec, plugin);
}