gme: 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:
Stéphane Cerveau 2021-02-17 18:04:20 +01:00 committed by GStreamer Marge Bot
parent 08ea6d39a3
commit bb51f78270
2 changed files with 5 additions and 2 deletions

View file

@ -51,6 +51,8 @@ GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
#define gst_gme_dec_parent_class parent_class
G_DEFINE_TYPE (GstGmeDec, gst_gme_dec, GST_TYPE_ELEMENT);
GST_ELEMENT_REGISTER_DEFINE (gmedec, "gmedec", GST_RANK_PRIMARY,
GST_TYPE_GME_DEC);
static GstFlowReturn gst_gme_dec_chain (GstPad * pad, GstObject * parent,
GstBuffer * buffer);
@ -506,8 +508,7 @@ gst_gme_dec_change_state (GstElement * element, GstStateChange transition)
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "gmedec", GST_RANK_PRIMARY,
GST_TYPE_GME_DEC);
return GST_ELEMENT_REGISTER (gmedec, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -65,6 +65,8 @@ struct _GstGmeDecClass
GType gst_gme_dec_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (gmedec);
G_END_DECLS
#endif /* __GST_GME_DEC_H__ */