From 6bfa751d8be21c2a76642dbb77f68319ae69c45d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Wed, 17 Feb 2021 10:10:39 +0100 Subject: [PATCH] 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: --- ext/bs2b/gstbs2b.c | 3 ++- ext/bs2b/gstbs2b.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/bs2b/gstbs2b.c b/ext/bs2b/gstbs2b.c index dc597087f1..88c2ae0e38 100644 --- a/ext/bs2b/gstbs2b.c +++ b/ext/bs2b/gstbs2b.c @@ -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, diff --git a/ext/bs2b/gstbs2b.h b/ext/bs2b/gstbs2b.h index 8ec7f145c6..c57fec85d0 100644 --- a/ext/bs2b/gstbs2b.h +++ b/ext/bs2b/gstbs2b.h @@ -59,5 +59,7 @@ struct _GstBs2bClass GType gst_bs2b_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (bs2b); + G_END_DECLS #endif /* __GST_BS2B_H__ */