mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 10:38:27 +00:00
sctp: 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/2038>
This commit is contained in:
parent
c2f4524e32
commit
3c46adf1db
5 changed files with 12 additions and 5 deletions
|
@ -39,6 +39,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_sctp_dec_debug_category);
|
|||
|
||||
#define gst_sctp_dec_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstSctpDec, gst_sctp_dec, GST_TYPE_ELEMENT);
|
||||
GST_ELEMENT_REGISTER_DEFINE (sctpdec, "sctpdec", GST_RANK_NONE,
|
||||
GST_TYPE_SCTP_DEC);
|
||||
|
||||
static GstStaticPadTemplate sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK,
|
||||
|
|
|
@ -63,6 +63,7 @@ struct _GstSctpDecClass
|
|||
};
|
||||
|
||||
GType gst_sctp_dec_get_type (void);
|
||||
GST_ELEMENT_REGISTER_DECLARE (sctpdec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -36,6 +36,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_sctp_enc_debug_category);
|
|||
|
||||
#define gst_sctp_enc_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstSctpEnc, gst_sctp_enc, GST_TYPE_ELEMENT);
|
||||
GST_ELEMENT_REGISTER_DEFINE (sctpenc, "sctpenc", GST_RANK_NONE,
|
||||
GST_TYPE_SCTP_ENC);
|
||||
|
||||
static GstStaticPadTemplate sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink_%u", GST_PAD_SINK,
|
||||
|
|
|
@ -72,6 +72,7 @@ struct _GstSctpEncClass
|
|||
};
|
||||
|
||||
GType gst_sctp_enc_get_type (void);
|
||||
GST_ELEMENT_REGISTER_DECLARE (sctpenc);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -35,12 +35,13 @@
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "sctpenc", GST_RANK_NONE,
|
||||
GST_TYPE_SCTP_ENC)
|
||||
&& gst_element_register (plugin, "sctpdec", GST_RANK_NONE,
|
||||
GST_TYPE_SCTP_DEC);
|
||||
}
|
||||
gboolean ret = FALSE;
|
||||
|
||||
ret |= GST_ELEMENT_REGISTER (sctpenc, plugin);
|
||||
ret |= GST_ELEMENT_REGISTER (sctpdec, plugin);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifndef PACKAGE
|
||||
#define PACKAGE "sctp"
|
||||
|
|
Loading…
Reference in a new issue