mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
sidplay: 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
1b9f99d19f
commit
e3a35c127f
2 changed files with 5 additions and 3 deletions
|
@ -144,6 +144,8 @@ static void gst_siddec_set_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
#define gst_siddec_parent_class parent_class
|
#define gst_siddec_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstSidDec, gst_siddec, GST_TYPE_ELEMENT);
|
G_DEFINE_TYPE (GstSidDec, gst_siddec, GST_TYPE_ELEMENT);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (siddec, "siddec", GST_RANK_PRIMARY,
|
||||||
|
GST_TYPE_SIDDEC);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_siddec_class_init (GstSidDecClass * klass)
|
gst_siddec_class_init (GstSidDecClass * klass)
|
||||||
|
@ -768,8 +770,7 @@ gst_siddec_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
return gst_element_register (plugin, "siddec", GST_RANK_PRIMARY,
|
return GST_ELEMENT_REGISTER (siddec, plugin);
|
||||||
GST_TYPE_SIDDEC);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -69,7 +69,8 @@ struct _GstSidDecClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_siddec_get_type (void);
|
GType gst_siddec_get_type (void);
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (siddec);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_SIDDEC_H__ */
|
#endif /* __GST_SIDDEC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue