diff options
Diffstat (limited to 'ext/openexr')
-rw-r--r-- | ext/openexr/gstopenexr.c | 6 | ||||
-rw-r--r-- | ext/openexr/gstopenexrdec.cpp | 2 | ||||
-rw-r--r-- | ext/openexr/gstopenexrdec.h | 2 |
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__ */ |