summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mpg123/gstmpg123audiodec.c5
-rw-r--r--ext/mpg123/gstmpg123audiodec.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c
index 3e3c923a0..dd7186ac8 100644
--- a/ext/mpg123/gstmpg123audiodec.c
+++ b/ext/mpg123/gstmpg123audiodec.c
@@ -83,6 +83,8 @@ static gboolean gst_mpg123_audio_dec_set_format (GstAudioDecoder * dec,
static void gst_mpg123_audio_dec_flush (GstAudioDecoder * dec, gboolean hard);
G_DEFINE_TYPE (GstMpg123AudioDec, gst_mpg123_audio_dec, GST_TYPE_AUDIO_DECODER);
+GST_ELEMENT_REGISTER_DEFINE (mpg123audiodec, "mpg123audiodec",
+ GST_RANK_MARGINAL, GST_TYPE_MPG123_AUDIO_DEC);
static void
gst_mpg123_audio_dec_class_init (GstMpg123AudioDecClass * klass)
@@ -623,8 +625,7 @@ gst_mpg123_audio_dec_flush (GstAudioDecoder * dec, gboolean hard)
static gboolean
plugin_init (GstPlugin * plugin)
{
- return gst_element_register (plugin, "mpg123audiodec",
- GST_RANK_MARGINAL, gst_mpg123_audio_dec_get_type ());
+ return GST_ELEMENT_REGISTER (mpg123audiodec, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
diff --git a/ext/mpg123/gstmpg123audiodec.h b/ext/mpg123/gstmpg123audiodec.h
index f396a2584..e6c316bb2 100644
--- a/ext/mpg123/gstmpg123audiodec.h
+++ b/ext/mpg123/gstmpg123audiodec.h
@@ -42,6 +42,8 @@ struct _GstMpg123AudioDec
off_t frame_offset;
};
+GST_ELEMENT_REGISTER_DECLARE (mpg123audiodec);
+
G_END_DECLS
#endif