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>
#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)
/* Standard function returning type information. */
GType gst_xing_mux_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (xingmux);
G_END_DECLS
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,