voaacenc: 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-24 17:32:34 +01:00 committed by GStreamer Marge Bot
parent 0b07d970fe
commit ea63ed5dcb
3 changed files with 5 additions and 2 deletions

View file

@ -26,8 +26,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "voaacenc",
GST_RANK_SECONDARY, GST_TYPE_VOAACENC);
return GST_ELEMENT_REGISTER (voaacenc, plugin);
}

View file

@ -107,6 +107,8 @@ static GstFlowReturn gst_voaacenc_handle_frame (GstAudioEncoder * enc,
GstBuffer * in_buf);
G_DEFINE_TYPE (GstVoAacEnc, gst_voaacenc, GST_TYPE_AUDIO_ENCODER);
GST_ELEMENT_REGISTER_DEFINE (voaacenc, "voaacenc",
GST_RANK_SECONDARY, GST_TYPE_VOAACENC);
static void
gst_voaacenc_set_property (GObject * object, guint prop_id,

View file

@ -70,6 +70,8 @@ struct _GstVoAacEncClass {
GType gst_voaacenc_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (voaacenc);
G_END_DECLS
#endif /* __GST_VOAACENC_H__ */