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>
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "openexrdec", GST_RANK_PRIMARY,
- GST_TYPE_OPENEXR_DEC))
- return FALSE;
- return TRUE;
+
+ return GST_ELEMENT_REGISTER (openexrdec, plugin);;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
#define parent_class gst_openexr_dec_parent_class
G_DEFINE_TYPE (GstOpenEXRDec, gst_openexr_dec, GST_TYPE_VIDEO_DECODER);
+GST_ELEMENT_REGISTER_DEFINE (openexrdec, "openexrdec", GST_RANK_PRIMARY,
+ GST_TYPE_OPENEXR_DEC);
static void
gst_openexr_dec_class_init (GstOpenEXRDecClass * klass)
GType gst_openexr_dec_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (openexrdec);
+
G_END_DECLS
#endif /* __GST_OPENEXR_DEC_H__ */