mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
c4a1de5510
commit
96a923fab2
3 changed files with 4 additions and 6 deletions
|
@ -95,7 +95,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstOpenMptDec, gst_openmpt_dec,
|
G_DEFINE_TYPE (GstOpenMptDec, gst_openmpt_dec,
|
||||||
GST_TYPE_NONSTREAM_AUDIO_DECODER);
|
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);
|
static void gst_openmpt_dec_finalize (GObject * object);
|
||||||
|
|
|
@ -74,6 +74,7 @@ struct _GstOpenMptDecClass
|
||||||
|
|
||||||
GType gst_openmpt_dec_get_type (void);
|
GType gst_openmpt_dec_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (openmptdec);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
gboolean ret = TRUE;
|
return GST_ELEMENT_REGISTER (openmptdec, plugin);
|
||||||
ret = ret
|
|
||||||
&& gst_element_register (plugin, "openmptdec", GST_RANK_PRIMARY + 2,
|
|
||||||
gst_openmpt_dec_get_type ());
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue