diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-24 17:32:34 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-23 14:19:17 +0000 |
commit | ea63ed5dcbe7f6a8dc7a7a9f5f54ed71b6661f3c (patch) | |
tree | 404ae8cd342e8ba0de016f2357c78a87a8f44690 /ext | |
parent | 0b07d970fe06ec975a4ef0da88d06b555184d7da (diff) | |
download | gstreamer-plugins-bad-ea63ed5dcbe7f6a8dc7a7a9f5f54ed71b6661f3c.tar.gz |
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>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/voaacenc/gstvoaac.c | 3 | ||||
-rw-r--r-- | ext/voaacenc/gstvoaacenc.c | 2 | ||||
-rw-r--r-- | ext/voaacenc/gstvoaacenc.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/ext/voaacenc/gstvoaac.c b/ext/voaacenc/gstvoaac.c index 8817ca801..1c35fa813 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 91eacb8c9..5039d2640 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 aca200cd0..6ef6537b5 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__ */ |