mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
openexr: 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
63e2705e97
commit
7e0ad83f04
3 changed files with 6 additions and 4 deletions
|
@ -29,11 +29,9 @@
|
|||
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,
|
||||
|
|
|
@ -112,6 +112,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
|
||||
#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)
|
||||
|
|
|
@ -58,6 +58,8 @@ struct _GstOpenEXRDecClass
|
|||
|
||||
GType gst_openexr_dec_get_type (void);
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (openexrdec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_OPENEXR_DEC_H__ */
|
||||
|
|
Loading…
Reference in a new issue