mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
flite: 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 <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038> Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2123>
This commit is contained in:
parent
26d88d4ed9
commit
1fc9cc06db
2 changed files with 5 additions and 7 deletions
|
@ -25,17 +25,12 @@
|
|||
#include <flite/flite.h>
|
||||
|
||||
GType gst_flite_test_src_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (flitetestsrc);
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
flite_init ();
|
||||
|
||||
gst_element_register (plugin, "flitetestsrc", GST_RANK_NONE,
|
||||
gst_flite_test_src_get_type ());
|
||||
|
||||
return TRUE;
|
||||
return GST_ELEMENT_REGISTER (flitetestsrc, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -90,8 +90,11 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
"rate = (int) 48000, " "channels = (int) [1, 8]")
|
||||
);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (flitetestsrc);
|
||||
#define gst_flite_test_src_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstFliteTestSrc, gst_flite_test_src, GST_TYPE_BASE_SRC);
|
||||
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (flitetestsrc, "flitetestsrc",
|
||||
GST_RANK_NONE, gst_flite_test_src_get_type (), flite_init ());
|
||||
|
||||
static void gst_flite_test_src_set_property (GObject * object,
|
||||
guint prop_id, const GValue * value, GParamSpec * pspec);
|
||||
|
|
Loading…
Reference in a new issue