diff --git a/ext/voaacenc/gstvoaac.c b/ext/voaacenc/gstvoaac.c index 8817ca8018..1c35fa8131 100644 --- a/ext/voaacenc/gstvoaac.c +++ b/ext/voaacenc/gstvoaac.c @@ -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); } diff --git a/ext/voaacenc/gstvoaacenc.c b/ext/voaacenc/gstvoaacenc.c index 91eacb8c9c..5039d2640b 100644 --- a/ext/voaacenc/gstvoaacenc.c +++ b/ext/voaacenc/gstvoaacenc.c @@ -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, diff --git a/ext/voaacenc/gstvoaacenc.h b/ext/voaacenc/gstvoaacenc.h index aca200cd02..6ef6537b50 100644 --- a/ext/voaacenc/gstvoaacenc.h +++ b/ext/voaacenc/gstvoaacenc.h @@ -70,6 +70,8 @@ struct _GstVoAacEncClass { GType gst_voaacenc_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (voaacenc); + G_END_DECLS #endif /* __GST_VOAACENC_H__ */