ldac: 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>
This commit is contained in:
Stéphane Cerveau 2021-02-18 09:48:04 +01:00 committed by GStreamer Marge Bot
parent 54ec02252f
commit 6a4614e135
3 changed files with 4 additions and 2 deletions

View file

@ -50,6 +50,8 @@ GST_DEBUG_CATEGORY_STATIC (ldac_enc_debug);
#define parent_class gst_ldac_enc_parent_class
G_DEFINE_TYPE (GstLdacEnc, gst_ldac_enc, GST_TYPE_AUDIO_ENCODER);
GST_ELEMENT_REGISTER_DEFINE (ldacenc, "ldacenc", GST_RANK_NONE,
GST_TYPE_LDAC_ENC);
#define SAMPLE_RATES "44100, 48000, 88200, 96000"

View file

@ -62,5 +62,6 @@ struct _GstLdacEncClass {
};
GType gst_ldac_enc_get_type (void);
GST_ELEMENT_REGISTER_DECLARE (ldacenc);
G_END_DECLS

View file

@ -27,8 +27,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
gst_element_register (plugin, "ldacenc", GST_RANK_NONE, GST_TYPE_LDAC_ENC);
return TRUE;
return GST_ELEMENT_REGISTER (ldacenc, plugin);;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,