From 7cc7518b19228ace0963fcfe810deb6dd3ad12f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 16 Feb 2021 17:14:26 +0100 Subject: [PATCH] goom2k1: 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: --- gst/goom2k1/gstgoom.c | 6 +++--- gst/goom2k1/gstgoom.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/goom2k1/gstgoom.c b/gst/goom2k1/gstgoom.c index c8baf02..171af30 100644 --- a/gst/goom2k1/gstgoom.c +++ b/gst/goom2k1/gstgoom.c @@ -86,7 +86,8 @@ static gboolean gst_goom2k1_render (GstAudioVisualizer * base, G_DEFINE_TYPE (GstGoom2k1, gst_goom2k1, GST_TYPE_AUDIO_VISUALIZER); - +GST_ELEMENT_REGISTER_DEFINE (goom2k1, "goom2k1", GST_RANK_NONE, + GST_TYPE_GOOM2K1); static void gst_goom2k1_class_init (GstGoom2k1Class * klass) { @@ -182,8 +183,7 @@ gst_goom2k1_render (GstAudioVisualizer * base, GstBuffer * audio, static gboolean plugin_init (GstPlugin * plugin) { - return gst_element_register (plugin, "goom2k1", GST_RANK_NONE, - GST_TYPE_GOOM2K1); + return GST_ELEMENT_REGISTER (goom2k1, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/goom2k1/gstgoom.h b/gst/goom2k1/gstgoom.h index 41b818b..533388d 100644 --- a/gst/goom2k1/gstgoom.h +++ b/gst/goom2k1/gstgoom.h @@ -60,7 +60,7 @@ struct _GstGoom2k1Class }; GType gst_goom2k1_get_type (void); -gboolean gst_goom2k1_plugin_init (GstPlugin * plugin); +GST_ELEMENT_REGISTER_DECLARE (goom2k1); G_END_DECLS -- 2.7.4