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:
Stéphane Cerveau 2021-02-11 09:58:59 +01:00 committed by GStreamer Marge Bot
parent a71bf2e3da
commit 0ae61fd48d
2 changed files with 5 additions and 2 deletions

View file

@ -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,

View file

@ -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__ */