diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-17 10:10:39 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-23 14:19:16 +0000 |
commit | 6bfa751d8be21c2a76642dbb77f68319ae69c45d (patch) | |
tree | ba2270209040d1051929a57ade0df7f3c9b39f2c /ext/bs2b | |
parent | 476dfe4f6fb2da25eb08dfd228672d75f55adaaf (diff) | |
download | gstreamer-plugins-bad-6bfa751d8be21c2a76642dbb77f68319ae69c45d.tar.gz |
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>
Diffstat (limited to 'ext/bs2b')
-rw-r--r-- | ext/bs2b/gstbs2b.c | 3 | ||||
-rw-r--r-- | ext/bs2b/gstbs2b.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ext/bs2b/gstbs2b.c b/ext/bs2b/gstbs2b.c index dc597087f..88c2ae0e3 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 8ec7f145c..c57fec85d 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__ */ |