mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
adder: 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-base/-/merge_requests/1029>
This commit is contained in:
parent
84e575dd59
commit
a71bf2e3da
2 changed files with 6 additions and 4 deletions
|
@ -193,6 +193,7 @@ static void gst_adder_child_proxy_init (gpointer g_iface, gpointer iface_data);
|
|||
#define gst_adder_parent_class parent_class
|
||||
G_DEFINE_TYPE_WITH_CODE (GstAdder, gst_adder, GST_TYPE_ELEMENT,
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY, gst_adder_child_proxy_init));
|
||||
GST_ELEMENT_REGISTER_DEFINE (adder, "adder", GST_RANK_NONE, GST_TYPE_ADDER);
|
||||
|
||||
static void gst_adder_dispose (GObject * object);
|
||||
static void gst_adder_set_property (GObject * object, guint prop_id,
|
||||
|
@ -1590,14 +1591,13 @@ gst_adder_child_proxy_init (gpointer g_iface, gpointer iface_data)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "adder", 0,
|
||||
"audio channel mixing element");
|
||||
|
||||
if (!gst_element_register (plugin, "adder", GST_RANK_NONE, GST_TYPE_ADDER)) {
|
||||
return FALSE;
|
||||
}
|
||||
ret |= GST_ELEMENT_REGISTER (adder, plugin);
|
||||
|
||||
return TRUE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -69,6 +69,8 @@ struct _GstAdder {
|
|||
gboolean send_caps;
|
||||
};
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (adder);
|
||||
|
||||
#define GST_TYPE_ADDER_PAD (gst_adder_pad_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstAdderPad, gst_adder_pad, GST, ADDER_PAD, GstPad)
|
||||
|
||||
|
|
Loading…
Reference in a new issue