mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
chromaprint: 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
d0d5663e06
commit
8b9c75eecc
2 changed files with 12 additions and 1 deletions
|
@ -61,8 +61,11 @@ enum
|
|||
PROP_MAX_DURATION
|
||||
};
|
||||
|
||||
static gboolean chromaprint_element_init (GstPlugin * plugin);
|
||||
|
||||
#define parent_class gst_chromaprint_parent_class
|
||||
G_DEFINE_TYPE (GstChromaprint, gst_chromaprint, GST_TYPE_AUDIO_FILTER);
|
||||
GST_ELEMENT_REGISTER_DEFINE_CUSTOM (chromaprint, chromaprint_element_init);
|
||||
|
||||
static void gst_chromaprint_finalize (GObject * object);
|
||||
static void gst_chromaprint_set_property (GObject * object, guint prop_id,
|
||||
|
@ -292,7 +295,7 @@ gst_chromaprint_get_property (GObject * object, guint prop_id,
|
|||
}
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
chromaprint_element_init (GstPlugin * plugin)
|
||||
{
|
||||
gboolean ret;
|
||||
|
||||
|
@ -313,6 +316,12 @@ plugin_init (GstPlugin * plugin)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return GST_ELEMENT_REGISTER (chromaprint, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
chromaprint,
|
||||
|
|
|
@ -72,6 +72,8 @@ struct _GstChromaprintClass
|
|||
|
||||
GType gst_chromaprint_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (chromaprint);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_CHROMAPRINT_H__ */
|
||||
|
|
Loading…
Reference in a new issue