amrwbdec: 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-ugly/-/merge_requests/79>
This commit is contained in:
Stéphane Cerveau 2021-03-29 10:39:46 +02:00 committed by GStreamer Marge Bot
parent d6055ac6d4
commit 4873c01b4a
3 changed files with 4 additions and 2 deletions

View file

@ -26,8 +26,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "amrwbdec",
GST_RANK_PRIMARY, GST_TYPE_AMRWBDEC);
return GST_ELEMENT_REGISTER (amrwbdec, plugin);
}

View file

@ -76,6 +76,8 @@ static GstFlowReturn gst_amrwbdec_handle_frame (GstAudioDecoder * dec,
#define gst_amrwbdec_parent_class parent_class
G_DEFINE_TYPE (GstAmrwbDec, gst_amrwbdec, GST_TYPE_AUDIO_DECODER);
GST_ELEMENT_REGISTER_DEFINE (amrwbdec, "amrwbdec",
GST_RANK_PRIMARY, GST_TYPE_AMRWBDEC);
static void
gst_amrwbdec_class_init (GstAmrwbDecClass * klass)

View file

@ -62,6 +62,7 @@ struct _GstAmrwbDecClass {
};
GType gst_amrwbdec_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (amrwbdec);
G_END_DECLS