diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c index b198fb42d5..9a32d48110 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.c +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c @@ -60,6 +60,8 @@ GST_STATIC_PAD_TEMPLATE ("src", #define gst_dvdlpcmdec_parent_class parent_class G_DEFINE_TYPE (GstDvdLpcmDec, gst_dvdlpcmdec, GST_TYPE_AUDIO_DECODER); +GST_ELEMENT_REGISTER_DEFINE (dvdlpcmdec, "dvdlpcmdec", GST_RANK_PRIMARY, + GST_TYPE_DVDLPCMDEC); static gboolean gst_dvdlpcmdec_set_format (GstAudioDecoder * bdec, GstCaps * caps); @@ -1006,13 +1008,7 @@ invalid_width: static gboolean plugin_init (GstPlugin * plugin) { - - if (!gst_element_register (plugin, "dvdlpcmdec", GST_RANK_PRIMARY, - GST_TYPE_DVDLPCMDEC)) { - return FALSE; - } - - return TRUE; + return GST_ELEMENT_REGISTER (dvdlpcmdec, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.h b/gst/dvdlpcmdec/gstdvdlpcmdec.h index 3bdce3f0e9..76d4d1e040 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.h +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.h @@ -72,6 +72,7 @@ struct _GstDvdLpcmDecClass { }; GType gst_dvdlpcmdec_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (dvdlpcmdec); G_END_DECLS