mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
audioresample: 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/1089>
This commit is contained in:
parent
bc75b81d7e
commit
51ed45ef89
2 changed files with 6 additions and 10 deletions
|
@ -136,7 +136,10 @@ static void gst_audio_resample_push_drain (GstAudioResample * resample,
|
||||||
|
|
||||||
#define gst_audio_resample_parent_class parent_class
|
#define gst_audio_resample_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstAudioResample, gst_audio_resample, GST_TYPE_BASE_TRANSFORM);
|
G_DEFINE_TYPE (GstAudioResample, gst_audio_resample, GST_TYPE_BASE_TRANSFORM);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (audioresample, "audioresample",
|
||||||
|
GST_RANK_PRIMARY, GST_TYPE_AUDIO_RESAMPLE,
|
||||||
|
GST_DEBUG_CATEGORY_INIT (audio_resample_debug, "audioresample", 0,
|
||||||
|
"audio resampling element"));
|
||||||
static void
|
static void
|
||||||
gst_audio_resample_class_init (GstAudioResampleClass * klass)
|
gst_audio_resample_class_init (GstAudioResampleClass * klass)
|
||||||
{
|
{
|
||||||
|
@ -1121,15 +1124,7 @@ gst_audio_resample_get_property (GObject * object, guint prop_id,
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (audio_resample_debug, "audioresample", 0,
|
return GST_ELEMENT_REGISTER (audioresample, plugin);
|
||||||
"audio resampling element");
|
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "audioresample", GST_RANK_PRIMARY,
|
|
||||||
GST_TYPE_AUDIO_RESAMPLE)) {
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -64,6 +64,7 @@ struct _GstAudioResample {
|
||||||
GstAudioInfo out;
|
GstAudioInfo out;
|
||||||
GstAudioConverter *converter;
|
GstAudioConverter *converter;
|
||||||
};
|
};
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (audioresample);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue