mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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>
This commit is contained in:
parent
c3525ca78c
commit
3ff44eabc3
3 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue