mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
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:
parent
d6055ac6d4
commit
4873c01b4a
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -62,6 +62,7 @@ struct _GstAmrwbDecClass {
|
|||
};
|
||||
|
||||
GType gst_amrwbdec_get_type (void);
|
||||
GST_ELEMENT_REGISTER_DECLARE (amrwbdec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue