From 90f640d90d6b51051878148b7441b0e673e7f60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Thu, 11 Feb 2021 11:11:25 +0100 Subject: [PATCH] videoscale: 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: --- gst/videoscale/gstvideoscale.c | 5 +++-- gst/videoscale/gstvideoscale.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 6ea90b3e7d..f3af32682a 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -210,6 +210,8 @@ static void gst_video_scale_get_property (GObject * object, guint prop_id, #define gst_video_scale_parent_class parent_class G_DEFINE_TYPE (GstVideoScale, gst_video_scale, GST_TYPE_VIDEO_FILTER); +GST_ELEMENT_REGISTER_DEFINE (videoscale, "videoscale", + GST_RANK_NONE, GST_TYPE_VIDEO_SCALE); static GstCapsFeatures *features_format_interlaced, *features_format_interlaced_sysmem; @@ -1238,8 +1240,7 @@ plugin_init (GstPlugin * plugin) "videoscale element"); GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE"); - return gst_element_register (plugin, "videoscale", GST_RANK_NONE, - GST_TYPE_VIDEO_SCALE); + return GST_ELEMENT_REGISTER (videoscale, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/videoscale/gstvideoscale.h b/gst/videoscale/gstvideoscale.h index b7fcbc854c..f518d5e797 100644 --- a/gst/videoscale/gstvideoscale.h +++ b/gst/videoscale/gstvideoscale.h @@ -86,6 +86,8 @@ struct _GstVideoScale { gint borders_w; }; +GST_ELEMENT_REGISTER_DECLARE (videoscale); + G_END_DECLS #endif /* __GST_VIDEO_SCALE_H__ */