faad: 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-17 15:59:49 +01:00 committed by GStreamer Marge Bot
parent add47b7cb0
commit e2816f2b85
2 changed files with 4 additions and 2 deletions

View file

@ -104,6 +104,7 @@ static void gst_faad_close_decoder (GstFaad * faad);
#define gst_faad_parent_class parent_class
G_DEFINE_TYPE (GstFaad, gst_faad, GST_TYPE_AUDIO_DECODER);
GST_ELEMENT_REGISTER_DEFINE (faad, "faad", GST_RANK_SECONDARY, GST_TYPE_FAAD);
static void
gst_faad_class_init (GstFaadClass * klass)
@ -840,8 +841,7 @@ gst_faad_close_decoder (GstFaad * faad)
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "faad", GST_RANK_SECONDARY,
GST_TYPE_FAAD);
return GST_ELEMENT_REGISTER (faad, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -66,6 +66,8 @@ typedef struct _GstFaadClass {
GType gst_faad_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (faad);
G_END_DECLS
#endif /* __GST_FAAD_H__ */