mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
bs2b: 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-bad/-/merge_requests/2038>
This commit is contained in:
parent
476dfe4f6f
commit
6bfa751d8b
2 changed files with 4 additions and 1 deletions
|
@ -101,6 +101,7 @@ static void gst_preset_interface_init (gpointer g_iface, gpointer iface_data);
|
|||
|
||||
G_DEFINE_TYPE_WITH_CODE (GstBs2b, gst_bs2b, GST_TYPE_AUDIO_FILTER,
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, gst_preset_interface_init));
|
||||
GST_ELEMENT_REGISTER_DEFINE (bs2b, "bs2b", GST_RANK_NONE, GST_TYPE_BS2B);
|
||||
|
||||
static void gst_bs2b_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec);
|
||||
|
@ -410,7 +411,7 @@ gst_bs2b_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "bs2b", GST_RANK_NONE, GST_TYPE_BS2B);
|
||||
return GST_ELEMENT_REGISTER (bs2b, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -59,5 +59,7 @@ struct _GstBs2bClass
|
|||
|
||||
GType gst_bs2b_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (bs2b);
|
||||
|
||||
G_END_DECLS
|
||||
#endif /* __GST_BS2B_H__ */
|
||||
|
|
Loading…
Reference in a new issue