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
@ -26,8 +26,7 @@
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "voaacenc",
|
return GST_ELEMENT_REGISTER (voaacenc, plugin);
|
||||||
GST_RANK_SECONDARY, GST_TYPE_VOAACENC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,6 +107,8 @@ static GstFlowReturn gst_voaacenc_handle_frame (GstAudioEncoder * enc,
|
|||||||
GstBuffer * in_buf);
|
GstBuffer * in_buf);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstVoAacEnc, gst_voaacenc, GST_TYPE_AUDIO_ENCODER);
|
G_DEFINE_TYPE (GstVoAacEnc, gst_voaacenc, GST_TYPE_AUDIO_ENCODER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (voaacenc, "voaacenc",
|
||||||
|
GST_RANK_SECONDARY, GST_TYPE_VOAACENC);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_voaacenc_set_property (GObject * object, guint prop_id,
|
gst_voaacenc_set_property (GObject * object, guint prop_id,
|
||||||
|
@ -70,6 +70,8 @@ struct _GstVoAacEncClass {
|
|||||||
|
|
||||||
GType gst_voaacenc_get_type (void);
|
GType gst_voaacenc_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (voaacenc);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_VOAACENC_H__ */
|
#endif /* __GST_VOAACENC_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user