wayland: 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-bad/-/merge_requests/2038>
This commit is contained in:
Stéphane Cerveau 2021-02-24 18:56:55 +01:00 committed by GStreamer Marge Bot
parent efc1433892
commit 178dda8623
2 changed files with 5 additions and 2 deletions

View file

@ -122,6 +122,8 @@ G_DEFINE_TYPE_WITH_CODE (GstWaylandSink, gst_wayland_sink, GST_TYPE_VIDEO_SINK,
gst_wayland_sink_videooverlay_init)
G_IMPLEMENT_INTERFACE (GST_TYPE_WAYLAND_VIDEO,
gst_wayland_sink_waylandvideo_init));
GST_ELEMENT_REGISTER_DEFINE (waylandsink, "waylandsink", GST_RANK_MARGINAL,
GST_TYPE_WAYLAND_SINK);
/* A tiny GstVideoBufferPool subclass that modify the options to remove
* VideoAlignment. To support VideoAlignment we would need to pass the padded
@ -1054,8 +1056,7 @@ plugin_init (GstPlugin * plugin)
gst_wl_shm_allocator_register ();
return gst_element_register (plugin, "waylandsink", GST_RANK_MARGINAL,
GST_TYPE_WAYLAND_SINK);
return GST_ELEMENT_REGISTER (waylandsink, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -76,6 +76,8 @@ struct _GstWaylandSinkClass
GType gst_wayland_sink_get_type (void) G_GNUC_CONST;
GST_ELEMENT_REGISTER_DECLARE (waylandsink);
G_END_DECLS
#endif /* __GST_WAYLAND_VIDEO_SINK_H__ */