diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-03-29 13:41:07 +0200 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-29 19:13:36 +0000 |
commit | 3ff44eabc3589584ed73ba77ce34e62042d6e578 (patch) | |
tree | 8eacb8ab67b64fc2c4fcd76b172f476124d76b80 | |
parent | c3525ca78c4cd780a36f2b867ea90d7ac86822fc (diff) | |
download | gstreamer-plugins-ugly-3ff44eabc3589584ed73ba77ce34e62042d6e578.tar.gz |
xingmux: 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-ugly/-/merge_requests/79>
-rw-r--r-- | gst/xingmux/gstxingmux.c | 2 | ||||
-rw-r--r-- | gst/xingmux/gstxingmux.h | 1 | ||||
-rw-r--r-- | gst/xingmux/plugin.c | 6 |
3 files changed, 4 insertions, 5 deletions
diff --git a/gst/xingmux/gstxingmux.c b/gst/xingmux/gstxingmux.c index 38c1abbe..33087ccd 100644 --- a/gst/xingmux/gstxingmux.c +++ b/gst/xingmux/gstxingmux.c @@ -52,6 +52,8 @@ GST_DEBUG_CATEGORY_STATIC (xing_mux_debug); #define gst_xing_mux_parent_class parent_class G_DEFINE_TYPE (GstXingMux, gst_xing_mux, GST_TYPE_ELEMENT); +GST_ELEMENT_REGISTER_DEFINE (xingmux, "xingmux", GST_RANK_MARGINAL, + GST_TYPE_XING_MUX); /* Xing Header stuff */ #define GST_XING_FRAME_FIELD (1 << 0) diff --git a/gst/xingmux/gstxingmux.h b/gst/xingmux/gstxingmux.h index 9f0c47a9..0d8e82c8 100644 --- a/gst/xingmux/gstxingmux.h +++ b/gst/xingmux/gstxingmux.h @@ -79,6 +79,7 @@ struct _GstXingMuxClass { /* Standard function returning type information. */ GType gst_xing_mux_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (xingmux); G_END_DECLS diff --git a/gst/xingmux/plugin.c b/gst/xingmux/plugin.c index 470a24ef..21dabbbb 100644 --- a/gst/xingmux/plugin.c +++ b/gst/xingmux/plugin.c @@ -27,11 +27,7 @@ static gboolean plugin_init (GstPlugin * plugin) { - if (!gst_element_register (plugin, "xingmux", GST_RANK_MARGINAL, - GST_TYPE_XING_MUX)) - return FALSE; - - return TRUE; + return GST_ELEMENT_REGISTER (xingmux, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, |