mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
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:
parent
1d7262baa3
commit
df2452e8ef
2 changed files with 4 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -72,6 +72,7 @@ struct _GstDvdLpcmDecClass {
|
|||
};
|
||||
|
||||
GType gst_dvdlpcmdec_get_type (void);
|
||||
GST_ELEMENT_REGISTER_DECLARE (dvdlpcmdec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue