summaryrefslogtreecommitdiff
path: root/ext/openexr
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-18 14:08:34 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-03-23 14:19:17 +0000
commit7e0ad83f04d11035ced3e2f34bb2c304b4109380 (patch)
tree1325541eb5ddf2258bf49472eb1dea1c8a2c15ce /ext/openexr
parent63e2705e97f12e5a9d585f66a5b03bfc13e7abf3 (diff)
downloadgstreamer-plugins-bad-7e0ad83f04d11035ced3e2f34bb2c304b4109380.tar.gz
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>
Diffstat (limited to 'ext/openexr')
-rw-r--r--ext/openexr/gstopenexr.c6
-rw-r--r--ext/openexr/gstopenexrdec.cpp2
-rw-r--r--ext/openexr/gstopenexrdec.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/ext/openexr/gstopenexr.c b/ext/openexr/gstopenexr.c
index 7961b94bf..5365b479c 100644
--- a/ext/openexr/gstopenexr.c
+++ b/ext/openexr/gstopenexr.c
@@ -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,
diff --git a/ext/openexr/gstopenexrdec.cpp b/ext/openexr/gstopenexrdec.cpp
index a83c35de9..eeb316cb1 100644
--- a/ext/openexr/gstopenexrdec.cpp
+++ b/ext/openexr/gstopenexrdec.cpp
@@ -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)
diff --git a/ext/openexr/gstopenexrdec.h b/ext/openexr/gstopenexrdec.h
index 381bb9dbf..40424b184 100644
--- a/ext/openexr/gstopenexrdec.h
+++ b/ext/openexr/gstopenexrdec.h
@@ -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__ */