mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
faac: 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
2cf00e75b1
commit
add47b7cb0
2 changed files with 4 additions and 2 deletions
|
@ -135,6 +135,7 @@ GST_DEBUG_CATEGORY_STATIC (faac_debug);
|
||||||
|
|
||||||
#define gst_faac_parent_class parent_class
|
#define gst_faac_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstFaac, gst_faac, GST_TYPE_AUDIO_ENCODER);
|
G_DEFINE_TYPE (GstFaac, gst_faac, GST_TYPE_AUDIO_ENCODER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (faac, "faac", GST_RANK_SECONDARY, GST_TYPE_FAAC);
|
||||||
|
|
||||||
#define GST_TYPE_FAAC_RATE_CONTROL (gst_faac_brtype_get_type ())
|
#define GST_TYPE_FAAC_RATE_CONTROL (gst_faac_brtype_get_type ())
|
||||||
static GType
|
static GType
|
||||||
|
@ -781,8 +782,7 @@ gst_faac_get_property (GObject * object,
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "faac", GST_RANK_SECONDARY,
|
return GST_ELEMENT_REGISTER (faac, plugin);
|
||||||
GST_TYPE_FAAC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -73,6 +73,8 @@ struct _GstFaacClass {
|
||||||
|
|
||||||
GType gst_faac_get_type (void);
|
GType gst_faac_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (faac);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_FAAC_H__ */
|
#endif /* __GST_FAAC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue