mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
add47b7cb0
commit
e2816f2b85
2 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue