mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
wavparse: 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
136de010bb
commit
8ef56e529f
2 changed files with 7 additions and 4 deletions
|
@ -115,6 +115,10 @@ static GstStaticPadTemplate sink_template_factory =
|
|||
G_DEFINE_TYPE_WITH_CODE (GstWavParse, gst_wavparse, GST_TYPE_ELEMENT,
|
||||
DEBUG_INIT);
|
||||
|
||||
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (wavparse, "wavparse", GST_RANK_PRIMARY,
|
||||
GST_TYPE_WAVPARSE, gst_riff_init ();
|
||||
);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* Offset Size Description Value
|
||||
|
@ -2990,10 +2994,7 @@ gst_wavparse_get_property (GObject * object, guint prop_id,
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
gst_riff_init ();
|
||||
|
||||
return gst_element_register (plugin, "wavparse", GST_RANK_PRIMARY,
|
||||
GST_TYPE_WAVPARSE);
|
||||
return GST_ELEMENT_REGISTER (wavparse, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -133,6 +133,8 @@ struct _GstWavParseClass {
|
|||
|
||||
GType gst_wavparse_get_type(void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (wavparse);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_WAVPARSE_H__ */
|
||||
|
|
Loading…
Reference in a new issue