mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
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:
parent
0b07d970fe
commit
ea63ed5dcb
3 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -70,6 +70,8 @@ struct _GstVoAacEncClass {
|
|||
|
||||
GType gst_voaacenc_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (voaacenc);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_VOAACENC_H__ */
|
||||
|
|
Loading…
Reference in a new issue