summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-24 18:56:55 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-03-23 14:19:17 +0000
commit178dda8623975fdad8ee0d74eabfa00af3f55749 (patch)
tree15562770156a8115629c852aabb0ce903cd28ac0 /ext
parentefc1433892af6cafd3d3e33c8b0b8b6a355235fc (diff)
downloadgstreamer-plugins-bad-178dda8623975fdad8ee0d74eabfa00af3f55749.tar.gz
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>
Diffstat (limited to 'ext')
-rw-r--r--ext/wayland/gstwaylandsink.c5
-rw-r--r--ext/wayland/gstwaylandsink.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
index 47192df46..fd196b373 100644
--- a/ext/wayland/gstwaylandsink.c
+++ b/ext/wayland/gstwaylandsink.c
@@ -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,
diff --git a/ext/wayland/gstwaylandsink.h b/ext/wayland/gstwaylandsink.h
index be92fe7f2..ce79f9ce1 100644
--- a/ext/wayland/gstwaylandsink.h
+++ b/ext/wayland/gstwaylandsink.h
@@ -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__ */