mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-29 03:10:40 +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
|
@ -165,7 +165,8 @@ enum
|
||||||
#define gst_audio_convert_parent_class parent_class
|
#define gst_audio_convert_parent_class parent_class
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstAudioConvert, gst_audio_convert,
|
G_DEFINE_TYPE_WITH_CODE (GstAudioConvert, gst_audio_convert,
|
||||||
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
|
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (audioconvert, "audioconvert",
|
||||||
|
GST_RANK_PRIMARY, GST_TYPE_AUDIO_CONVERT);
|
||||||
/*** GSTREAMER PROTOTYPES *****************************************************/
|
/*** GSTREAMER PROTOTYPES *****************************************************/
|
||||||
|
|
||||||
#define STATIC_CAPS \
|
#define STATIC_CAPS \
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
||||||
G_DECLARE_FINAL_TYPE (GstAudioConvert, gst_audio_convert,
|
G_DECLARE_FINAL_TYPE (GstAudioConvert, gst_audio_convert,
|
||||||
GST, AUDIO_CONVERT, GstBaseTransform)
|
GST, AUDIO_CONVERT, GstBaseTransform);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstAudioConvert:
|
* GstAudioConvert:
|
||||||
|
@ -50,4 +50,6 @@ struct _GstAudioConvert
|
||||||
GstAudioConverter *convert;
|
GstAudioConverter *convert;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (audioconvert);
|
||||||
|
|
||||||
#endif /* __GST_AUDIO_CONVERT_H__ */
|
#endif /* __GST_AUDIO_CONVERT_H__ */
|
||||||
|
|
|
@ -28,11 +28,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "audioconvert",
|
return GST_ELEMENT_REGISTER (audioconvert, plugin);
|
||||||
GST_RANK_PRIMARY, GST_TYPE_AUDIO_CONVERT))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
Loading…
Reference in a new issue