dvdlpcmdec: 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 13:15:32 +02:00 committed by GStreamer Marge Bot
parent 1d7262baa3
commit df2452e8ef
2 changed files with 4 additions and 7 deletions

View file

@ -60,6 +60,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
#define gst_dvdlpcmdec_parent_class parent_class
G_DEFINE_TYPE (GstDvdLpcmDec, gst_dvdlpcmdec, GST_TYPE_AUDIO_DECODER);
GST_ELEMENT_REGISTER_DEFINE (dvdlpcmdec, "dvdlpcmdec", GST_RANK_PRIMARY,
GST_TYPE_DVDLPCMDEC);
static gboolean gst_dvdlpcmdec_set_format (GstAudioDecoder * bdec,
GstCaps * caps);
@ -1006,13 +1008,7 @@ invalid_width:
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "dvdlpcmdec", GST_RANK_PRIMARY,
GST_TYPE_DVDLPCMDEC)) {
return FALSE;
}
return TRUE;
return GST_ELEMENT_REGISTER (dvdlpcmdec, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -72,6 +72,7 @@ struct _GstDvdLpcmDecClass {
};
GType gst_dvdlpcmdec_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (dvdlpcmdec);
G_END_DECLS