mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 06:22:29 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
This commit is contained in:
parent
30fc194540
commit
7cc7518b19
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue