mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
compositor: 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
a71bf2e3da
commit
0ae61fd48d
2 changed files with 5 additions and 2 deletions
|
@ -610,6 +610,8 @@ gst_compositor_set_property (GObject * object,
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstCompositor, gst_compositor,
|
G_DEFINE_TYPE_WITH_CODE (GstCompositor, gst_compositor,
|
||||||
GST_TYPE_VIDEO_AGGREGATOR, G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY,
|
GST_TYPE_VIDEO_AGGREGATOR, G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY,
|
||||||
gst_compositor_child_proxy_init));
|
gst_compositor_child_proxy_init));
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (compositor, "compositor", GST_RANK_PRIMARY + 1,
|
||||||
|
GST_TYPE_COMPOSITOR);
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
set_functions (GstCompositor * self, const GstVideoInfo * info)
|
set_functions (GstCompositor * self, const GstVideoInfo * info)
|
||||||
|
@ -1497,8 +1499,7 @@ plugin_init (GstPlugin * plugin)
|
||||||
|
|
||||||
gst_compositor_init_blend ();
|
gst_compositor_init_blend ();
|
||||||
|
|
||||||
return gst_element_register (plugin, "compositor", GST_RANK_PRIMARY + 1,
|
return GST_ELEMENT_REGISTER (compositor, plugin);
|
||||||
GST_TYPE_COMPOSITOR);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -149,5 +149,7 @@ struct _GstCompositorPad
|
||||||
GstCompositorOperator op;
|
GstCompositorOperator op;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (compositor);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* __GST_COMPOSITOR_H__ */
|
#endif /* __GST_COMPOSITOR_H__ */
|
||||||
|
|
Loading…
Reference in a new issue