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:
parent
96f59cd7cf
commit
06ea16232b
@ -73,6 +73,8 @@ static GstTagDemuxResult gst_ape_demux_parse_tag (GstTagDemux * demux,
|
|||||||
GstTagList ** tags);
|
GstTagList ** tags);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstApeDemux, gst_ape_demux, GST_TYPE_TAG_DEMUX);
|
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
|
static void
|
||||||
gst_ape_demux_class_init (GstApeDemuxClass * klass)
|
gst_ape_demux_class_init (GstApeDemuxClass * klass)
|
||||||
@ -434,8 +436,7 @@ gst_ape_demux_parse_tag (GstTagDemux * demux, GstBuffer * buffer,
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "apedemux",
|
return GST_ELEMENT_REGISTER (apedemux, plugin);
|
||||||
GST_RANK_PRIMARY, GST_TYPE_APE_DEMUX);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
@ -46,6 +46,8 @@ struct _GstApeDemuxClass
|
|||||||
|
|
||||||
GType gst_ape_demux_get_type (void);
|
GType gst_ape_demux_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (apedemux);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_APE_DEMUX_H__ */
|
#endif /* __GST_APE_DEMUX_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user