mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
wildmidi: 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
63dc81d000
commit
f4c9989782
2 changed files with 4 additions and 3 deletions
|
@ -111,7 +111,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
|
||||
G_DEFINE_TYPE (GstWildmidiDec, gst_wildmidi_dec,
|
||||
GST_TYPE_NONSTREAM_AUDIO_DECODER);
|
||||
|
||||
GST_ELEMENT_REGISTER_DEFINE (wildmididec, "wildmididec", GST_RANK_MARGINAL,
|
||||
gst_wildmidi_dec_get_type ());
|
||||
|
||||
|
||||
static void gst_wildmidi_dec_finalize (GObject * object);
|
||||
|
@ -677,8 +678,7 @@ gst_wildmidi_dec_update_options (GstWildmidiDec * wildmidi_dec)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "wildmididec", GST_RANK_MARGINAL,
|
||||
gst_wildmidi_dec_get_type ());
|
||||
return GST_ELEMENT_REGISTER (wildmididec, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -62,6 +62,7 @@ struct _GstWildmidiDecClass
|
|||
|
||||
GType gst_wildmidi_dec_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (wildmididec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue