diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-11 10:55:25 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-16 17:58:59 +0000 |
commit | aa230852ba63a0cb83bc70f518aebef430e08315 (patch) | |
tree | b43e80f3fc88a987f21039edddedbae7e8a93efb /gst | |
parent | a3875c7d024b44526e68a735f564b099288bbf57 (diff) | |
download | gstreamer-plugins-base-aa230852ba63a0cb83bc70f518aebef430e08315.tar.gz |
videoconvert: 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>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoconvert/gstvideoconvert.c | 5 | ||||
-rw-r--r-- | gst/videoconvert/gstvideoconvert.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 749e86f2a..0f65ee2db 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -56,6 +56,8 @@ static GQuark _colorspace_quark; #define gst_video_convert_parent_class parent_class G_DEFINE_TYPE (GstVideoConvert, gst_video_convert, GST_TYPE_VIDEO_FILTER); +GST_ELEMENT_REGISTER_DEFINE (videoconvert, "videoconvert", + GST_RANK_NONE, GST_TYPE_VIDEO_CONVERT); #define DEFAULT_PROP_DITHER GST_VIDEO_DITHER_BAYER #define DEFAULT_PROP_DITHER_QUANTIZATION 1 @@ -859,8 +861,7 @@ plugin_init (GstPlugin * plugin) gst_caps_features_add (features_format_interlaced_sysmem, GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY); - return gst_element_register (plugin, "videoconvert", - GST_RANK_NONE, GST_TYPE_VIDEO_CONVERT); + return GST_ELEMENT_REGISTER (videoconvert, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/videoconvert/gstvideoconvert.h b/gst/videoconvert/gstvideoconvert.h index 875c9ce23..0f093f4f7 100644 --- a/gst/videoconvert/gstvideoconvert.h +++ b/gst/videoconvert/gstvideoconvert.h @@ -54,6 +54,8 @@ struct _GstVideoConvert { gint n_threads; }; +GST_ELEMENT_REGISTER_DECLARE (videoconvert); + G_END_DECLS #endif /* __GST_VIDEOCONVERT_H__ */ |