summaryrefslogtreecommitdiff
path: root/ext/mpg123
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-12 10:41:29 +0100
committerStéphane Cerveau <scerveau@collabora.com>2021-03-29 12:45:21 +0200
commit65e0bc21a5d6cf847596050dff5f7cdff5a8afbb (patch)
tree63de7f59196a81ba5a8abcffb305209afaf768d2 /ext/mpg123
parentfb29c4b07ffb9973b3fe348ddbbea0b80f64cd94 (diff)
downloadgstreamer-plugins-good-65e0bc21a5d6cf847596050dff5f7cdff5a8afbb.tar.gz
mpeg123: 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-good/-/merge_requests/876>
Diffstat (limited to 'ext/mpg123')
-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