mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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:
parent
efc1433892
commit
178dda8623
2 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue