mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
audioconvert: 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-base/-/merge_requests/1029>
This commit is contained in:
parent
59163a107d
commit
2cc37e706c
3 changed files with 6 additions and 7 deletions
|
@ -165,7 +165,8 @@ enum
|
|||
#define gst_audio_convert_parent_class parent_class
|
||||
G_DEFINE_TYPE_WITH_CODE (GstAudioConvert, gst_audio_convert,
|
||||
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
|
||||
|
||||
GST_ELEMENT_REGISTER_DEFINE (audioconvert, "audioconvert",
|
||||
GST_RANK_PRIMARY, GST_TYPE_AUDIO_CONVERT);
|
||||
/*** GSTREAMER PROTOTYPES *****************************************************/
|
||||
|
||||
#define STATIC_CAPS \
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstAudioConvert, gst_audio_convert,
|
||||
GST, AUDIO_CONVERT, GstBaseTransform)
|
||||
GST, AUDIO_CONVERT, GstBaseTransform);
|
||||
|
||||
/**
|
||||
* GstAudioConvert:
|
||||
|
@ -50,4 +50,6 @@ struct _GstAudioConvert
|
|||
GstAudioConverter *convert;
|
||||
};
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (audioconvert);
|
||||
|
||||
#endif /* __GST_AUDIO_CONVERT_H__ */
|
||||
|
|
|
@ -28,11 +28,7 @@
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
if (!gst_element_register (plugin, "audioconvert",
|
||||
GST_RANK_PRIMARY, GST_TYPE_AUDIO_CONVERT))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return GST_ELEMENT_REGISTER (audioconvert, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
Loading…
Reference in a new issue