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>
static gboolean
plugin_init (GstPlugin * plugin)
{
- return gst_element_register (plugin, "amrwbdec",
- GST_RANK_PRIMARY, GST_TYPE_AMRWBDEC);
+ return GST_ELEMENT_REGISTER (amrwbdec, plugin);
}
#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)
};
GType gst_amrwbdec_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (amrwbdec);
G_END_DECLS