mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
flx: 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-good/-/merge_requests/876>
This commit is contained in:
parent
6fdbe19b3f
commit
26d37fb491
2 changed files with 5 additions and 2 deletions
|
@ -89,6 +89,8 @@ static gboolean flx_decode_delta_flc (GstFlxDec * flxdec,
|
|||
|
||||
#define gst_flxdec_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstFlxDec, gst_flxdec, GST_TYPE_ELEMENT);
|
||||
GST_ELEMENT_REGISTER_DEFINE (flxdec, "flxdec",
|
||||
GST_RANK_PRIMARY, GST_TYPE_FLXDEC);
|
||||
|
||||
static void
|
||||
gst_flxdec_class_init (GstFlxDecClass * klass)
|
||||
|
@ -988,8 +990,7 @@ gst_flxdec_change_state (GstElement * element, GstStateChange transition)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "flxdec",
|
||||
GST_RANK_PRIMARY, GST_TYPE_FLXDEC);
|
||||
return GST_ELEMENT_REGISTER (flxdec, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -82,6 +82,8 @@ struct _GstFlxDecClass {
|
|||
/* Standard function returning type information. */
|
||||
GType gst_flxdec_get_type(void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (flxdec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_FLX_DECODER_H__ */
|
||||
|
|
Loading…
Reference in a new issue