apetag: 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-good/-/merge_requests/876>
This commit is contained in:
Stéphane Cerveau 2021-02-15 12:44:31 +01:00
parent 96f59cd7cf
commit 06ea16232b
2 changed files with 5 additions and 2 deletions

View file

@ -73,6 +73,8 @@ static GstTagDemuxResult gst_ape_demux_parse_tag (GstTagDemux * demux,
GstTagList ** tags);
G_DEFINE_TYPE (GstApeDemux, gst_ape_demux, GST_TYPE_TAG_DEMUX);
GST_ELEMENT_REGISTER_DEFINE (apedemux, "apedemux", GST_RANK_PRIMARY,
GST_TYPE_APE_DEMUX);
static void
gst_ape_demux_class_init (GstApeDemuxClass * klass)
@ -434,8 +436,7 @@ gst_ape_demux_parse_tag (GstTagDemux * demux, GstBuffer * buffer,
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "apedemux",
GST_RANK_PRIMARY, GST_TYPE_APE_DEMUX);
return GST_ELEMENT_REGISTER (apedemux, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -46,6 +46,8 @@ struct _GstApeDemuxClass
GType gst_ape_demux_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (apedemux);
G_END_DECLS
#endif /* __GST_APE_DEMUX_H__ */