diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-25 15:22:15 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-04-11 16:16:55 +0000 |
commit | 891be511057dbcdf1f38740e55cbd376c4b25894 (patch) | |
tree | b077e8cd0b584ebe2a10950ef2398ab3f60b48b4 /gst/autoconvert | |
parent | 7f60138ef68e2a1fef8ccd4ff3710dfccd243314 (diff) | |
download | gstreamer-plugins-bad-891be511057dbcdf1f38740e55cbd376c4b25894.tar.gz |
gst-plugins: 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/2110>
Diffstat (limited to 'gst/autoconvert')
-rw-r--r-- | gst/autoconvert/gstautoconvert.c | 2 | ||||
-rw-r--r-- | gst/autoconvert/gstautoconvert.h | 1 | ||||
-rw-r--r-- | gst/autoconvert/gstautovideoconvert.c | 2 | ||||
-rw-r--r-- | gst/autoconvert/gstautovideoconvert.h | 1 | ||||
-rw-r--r-- | gst/autoconvert/plugin.c | 9 |
5 files changed, 9 insertions, 6 deletions
diff --git a/gst/autoconvert/gstautoconvert.c b/gst/autoconvert/gstautoconvert.c index 2c2433e03..08ad54a08 100644 --- a/gst/autoconvert/gstautoconvert.c +++ b/gst/autoconvert/gstautoconvert.c @@ -145,6 +145,8 @@ static GQuark internal_sinkpad_quark = 0; static GQuark parent_quark = 0; G_DEFINE_TYPE (GstAutoConvert, gst_auto_convert, GST_TYPE_BIN); +GST_ELEMENT_REGISTER_DEFINE (autoconvert, "autoconvert", + GST_RANK_NONE, GST_TYPE_AUTO_CONVERT); static void gst_auto_convert_class_init (GstAutoConvertClass * klass) diff --git a/gst/autoconvert/gstautoconvert.h b/gst/autoconvert/gstautoconvert.h index eaa4f02c9..310dfb022 100644 --- a/gst/autoconvert/gstautoconvert.h +++ b/gst/autoconvert/gstautoconvert.h @@ -61,6 +61,7 @@ struct _GstAutoConvertClass }; GType gst_auto_convert_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (autoconvert); G_END_DECLS #endif /* __GST_AUTO_CONVERT_H__ */ diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c index 5992c78c4..7481e7d18 100644 --- a/gst/autoconvert/gstautovideoconvert.c +++ b/gst/autoconvert/gstautovideoconvert.c @@ -131,6 +131,8 @@ gst_auto_video_convert_update_factory_list (GstAutoVideoConvert * } G_DEFINE_TYPE (GstAutoVideoConvert, gst_auto_video_convert, GST_TYPE_BIN); +GST_ELEMENT_REGISTER_DEFINE (autovideoconvert, "autovideoconvert", + GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_CONVERT); static void gst_auto_video_convert_class_init (GstAutoVideoConvertClass * klass) diff --git a/gst/autoconvert/gstautovideoconvert.h b/gst/autoconvert/gstautovideoconvert.h index b3fe894a6..813899363 100644 --- a/gst/autoconvert/gstautovideoconvert.h +++ b/gst/autoconvert/gstautovideoconvert.h @@ -50,6 +50,7 @@ struct _GstAutoVideoConvertClass }; GType gst_auto_video_convert_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (autovideoconvert); G_END_DECLS #endif /* __GST_AUTO_VIDEO_CONVERT_H__ */ diff --git a/gst/autoconvert/plugin.c b/gst/autoconvert/plugin.c index 03c05ab37..fd6d39ceb 100644 --- a/gst/autoconvert/plugin.c +++ b/gst/autoconvert/plugin.c @@ -28,13 +28,10 @@ static gboolean plugin_init (GstPlugin * plugin) { - gboolean ret; + gboolean ret = FALSE; - ret = gst_element_register (plugin, "autoconvert", - GST_RANK_NONE, GST_TYPE_AUTO_CONVERT); - - ret &= gst_element_register (plugin, "autovideoconvert", - GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_CONVERT); + ret |= GST_ELEMENT_REGISTER (autoconvert, plugin); + ret |= GST_ELEMENT_REGISTER (autovideoconvert, plugin); return ret; } |