From 0ae61fd48d9ecff09ba5ceac7e35f0183bfb1816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Thu, 11 Feb 2021 09:58:59 +0100 Subject: [PATCH] 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: --- gst/compositor/compositor.c | 5 +++-- gst/compositor/compositor.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/compositor/compositor.c b/gst/compositor/compositor.c index c86793e81d..38eba7616d 100644 --- a/gst/compositor/compositor.c +++ b/gst/compositor/compositor.c @@ -610,6 +610,8 @@ gst_compositor_set_property (GObject * object, G_DEFINE_TYPE_WITH_CODE (GstCompositor, gst_compositor, GST_TYPE_VIDEO_AGGREGATOR, G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY, gst_compositor_child_proxy_init)); +GST_ELEMENT_REGISTER_DEFINE (compositor, "compositor", GST_RANK_PRIMARY + 1, + GST_TYPE_COMPOSITOR); static gboolean set_functions (GstCompositor * self, const GstVideoInfo * info) @@ -1497,8 +1499,7 @@ plugin_init (GstPlugin * plugin) gst_compositor_init_blend (); - return gst_element_register (plugin, "compositor", GST_RANK_PRIMARY + 1, - GST_TYPE_COMPOSITOR); + return GST_ELEMENT_REGISTER (compositor, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/compositor/compositor.h b/gst/compositor/compositor.h index f1ad16a33b..4067fb1db2 100644 --- a/gst/compositor/compositor.h +++ b/gst/compositor/compositor.h @@ -149,5 +149,7 @@ struct _GstCompositorPad GstCompositorOperator op; }; +GST_ELEMENT_REGISTER_DECLARE (compositor); + G_END_DECLS #endif /* __GST_COMPOSITOR_H__ */