summaryrefslogtreecommitdiff
path: root/gst/audiofx
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-12 15:27:31 +0100
committerStéphane Cerveau <scerveau@collabora.com>2021-03-29 12:45:22 +0200
commitd8fa279161a2a9092caf6d49e2ed14189e4a1505 (patch)
treea8f19ff6f0f4d0135d5dea712ec34f97b80f64f1 /gst/audiofx
parent80f8780e927703e03c43ad3ae781ca3b7e3b3b35 (diff)
audiofx: 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 'gst/audiofx')
-rw-r--r--gst/audiofx/audioamplify.c2
-rw-r--r--gst/audiofx/audioamplify.h2
-rw-r--r--gst/audiofx/audiochebband.c2
-rw-r--r--gst/audiofx/audiochebband.h2
-rw-r--r--gst/audiofx/audiocheblimit.c2
-rw-r--r--gst/audiofx/audiocheblimit.h2
-rw-r--r--gst/audiofx/audiodynamic.c2
-rw-r--r--gst/audiofx/audiodynamic.h2
-rw-r--r--gst/audiofx/audioecho.c2
-rw-r--r--gst/audiofx/audioecho.h2
-rw-r--r--gst/audiofx/audiofirfilter.c2
-rw-r--r--gst/audiofx/audiofirfilter.h2
-rw-r--r--gst/audiofx/audiofx.c45
-rw-r--r--gst/audiofx/audioiirfilter.c2
-rw-r--r--gst/audiofx/audioiirfilter.h2
-rw-r--r--gst/audiofx/audioinvert.c2
-rw-r--r--gst/audiofx/audioinvert.h2
-rw-r--r--gst/audiofx/audiokaraoke.c2
-rw-r--r--gst/audiofx/audiokaraoke.h2
-rw-r--r--gst/audiofx/audiopanorama.c2
-rw-r--r--gst/audiofx/audiopanorama.h2
-rw-r--r--gst/audiofx/audiowsincband.c2
-rw-r--r--gst/audiofx/audiowsincband.h2
-rw-r--r--gst/audiofx/audiowsinclimit.c2
-rw-r--r--gst/audiofx/audiowsinclimit.h2
-rw-r--r--gst/audiofx/gstscaletempo.c2
-rw-r--r--gst/audiofx/gstscaletempo.h2
-rw-r--r--gst/audiofx/gststereo.c1
-rw-r--r--gst/audiofx/gststereo.h2
29 files changed, 73 insertions, 27 deletions
diff --git a/gst/audiofx/audioamplify.c b/gst/audiofx/audioamplify.c
index 13bcab86f..8228ebdbd 100644
--- a/gst/audiofx/audioamplify.c
+++ b/gst/audiofx/audioamplify.c
@@ -103,6 +103,8 @@ gst_audio_amplify_clipping_method_get_type (void)
" layout=(string) {interleaved, non-interleaved}"
G_DEFINE_TYPE (GstAudioAmplify, gst_audio_amplify, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audioamplify, "audioamplify",
+ GST_RANK_NONE, GST_TYPE_AUDIO_AMPLIFY);
static gboolean gst_audio_amplify_set_process_function (GstAudioAmplify *
filter, gint clipping, GstAudioFormat format);
diff --git a/gst/audiofx/audioamplify.h b/gst/audiofx/audioamplify.h
index 573eed155..24fc62fa8 100644
--- a/gst/audiofx/audioamplify.h
+++ b/gst/audiofx/audioamplify.h
@@ -58,5 +58,7 @@ struct _GstAudioAmplifyClass
GType gst_audio_amplify_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audioamplify);
+
G_END_DECLS
#endif /* __GST_AUDIO_AMPLIFY_H__ */
diff --git a/gst/audiofx/audiochebband.c b/gst/audiofx/audiochebband.c
index 02686a618..b318e557a 100644
--- a/gst/audiofx/audiochebband.c
+++ b/gst/audiofx/audiochebband.c
@@ -100,6 +100,8 @@ enum
#define gst_audio_cheb_band_parent_class parent_class
G_DEFINE_TYPE (GstAudioChebBand, gst_audio_cheb_band,
GST_TYPE_AUDIO_FX_BASE_IIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiochebband, "audiochebband",
+ GST_RANK_NONE, GST_TYPE_AUDIO_CHEB_BAND);
static void gst_audio_cheb_band_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiochebband.h b/gst/audiofx/audiochebband.h
index 58bdaf0e3..c8c218768 100644
--- a/gst/audiofx/audiochebband.h
+++ b/gst/audiofx/audiochebband.h
@@ -60,5 +60,7 @@ struct _GstAudioChebBandClass
GType gst_audio_cheb_band_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiochebband);
+
G_END_DECLS
#endif /* __GST_AUDIO_CHEB_BAND_H__ */
diff --git a/gst/audiofx/audiocheblimit.c b/gst/audiofx/audiocheblimit.c
index 0f7e8dc86..f9d2a4750 100644
--- a/gst/audiofx/audiocheblimit.c
+++ b/gst/audiofx/audiocheblimit.c
@@ -95,6 +95,8 @@ enum
#define gst_audio_cheb_limit_parent_class parent_class
G_DEFINE_TYPE (GstAudioChebLimit,
gst_audio_cheb_limit, GST_TYPE_AUDIO_FX_BASE_IIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiocheblimit, "audiocheblimit",
+ GST_RANK_NONE, GST_TYPE_AUDIO_CHEB_LIMIT);
static void gst_audio_cheb_limit_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiocheblimit.h b/gst/audiofx/audiocheblimit.h
index 19309601e..4c6392141 100644
--- a/gst/audiofx/audiocheblimit.h
+++ b/gst/audiofx/audiocheblimit.h
@@ -61,6 +61,8 @@ struct _GstAudioChebLimitClass
GType gst_audio_cheb_limit_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiocheblimit);
+
G_END_DECLS
#endif /* __GST_AUDIO_CHEB_LIMIT_H__ */
diff --git a/gst/audiofx/audiodynamic.c b/gst/audiofx/audiodynamic.c
index 07cb215d1..a24426854 100644
--- a/gst/audiofx/audiodynamic.c
+++ b/gst/audiofx/audiodynamic.c
@@ -76,6 +76,8 @@ enum
" layout=(string) {interleaved, non-interleaved}"
G_DEFINE_TYPE (GstAudioDynamic, gst_audio_dynamic, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiodynamic, "audiodynamic",
+ GST_RANK_NONE, GST_TYPE_AUDIO_DYNAMIC);
static void gst_audio_dynamic_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiodynamic.h b/gst/audiofx/audiodynamic.h
index ff1e4fb94..246a56496 100644
--- a/gst/audiofx/audiodynamic.h
+++ b/gst/audiofx/audiodynamic.h
@@ -58,6 +58,8 @@ struct _GstAudioDynamicClass
GType gst_audio_dynamic_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiodynamic);
+
G_END_DECLS
#endif /* __GST_AUDIO_DYNAMIC_H__ */
diff --git a/gst/audiofx/audioecho.c b/gst/audiofx/audioecho.c
index 948abf7ca..70af624a2 100644
--- a/gst/audiofx/audioecho.c
+++ b/gst/audiofx/audioecho.c
@@ -85,6 +85,8 @@ enum
#define gst_audio_echo_parent_class parent_class
G_DEFINE_TYPE (GstAudioEcho, gst_audio_echo, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audioecho, "audioecho",
+ GST_RANK_NONE, GST_TYPE_AUDIO_ECHO);
static void gst_audio_echo_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audioecho.h b/gst/audiofx/audioecho.h
index 51689eda2..b5eb5d6fe 100644
--- a/gst/audiofx/audioecho.h
+++ b/gst/audiofx/audioecho.h
@@ -68,6 +68,8 @@ struct _GstAudioEchoClass
GType gst_audio_echo_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audioecho);
+
G_END_DECLS
#endif /* __GST_AUDIO_ECHO_H__ */
diff --git a/gst/audiofx/audiofirfilter.c b/gst/audiofx/audiofirfilter.c
index f059685e0..fa1df3035 100644
--- a/gst/audiofx/audiofirfilter.c
+++ b/gst/audiofx/audiofirfilter.c
@@ -84,6 +84,8 @@ static guint gst_audio_fir_filter_signals[LAST_SIGNAL] = { 0, };
#define gst_audio_fir_filter_parent_class parent_class
G_DEFINE_TYPE (GstAudioFIRFilter, gst_audio_fir_filter,
GST_TYPE_AUDIO_FX_BASE_FIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiofirfilter, "audiofirfilter",
+ GST_RANK_NONE, GST_TYPE_AUDIO_FIR_FILTER);
static void gst_audio_fir_filter_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiofirfilter.h b/gst/audiofx/audiofirfilter.h
index f3b347583..e6f18ce71 100644
--- a/gst/audiofx/audiofirfilter.h
+++ b/gst/audiofx/audiofirfilter.h
@@ -66,6 +66,8 @@ struct _GstAudioFIRFilterClass {
GType gst_audio_fir_filter_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiofirfilter);
+
G_END_DECLS
#endif /* __GST_AUDIO_FIR_FILTER_H__ */
diff --git a/gst/audiofx/audiofx.c b/gst/audiofx/audiofx.c
index b44a62280..dae58ead6 100644
--- a/gst/audiofx/audiofx.c
+++ b/gst/audiofx/audiofx.c
@@ -47,33 +47,24 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
- return (gst_element_register (plugin, "audiopanorama", GST_RANK_NONE,
- GST_TYPE_AUDIO_PANORAMA) &&
- gst_element_register (plugin, "audioinvert", GST_RANK_NONE,
- GST_TYPE_AUDIO_INVERT) &&
- gst_element_register (plugin, "audiokaraoke", GST_RANK_NONE,
- GST_TYPE_AUDIO_KARAOKE) &&
- gst_element_register (plugin, "audioamplify", GST_RANK_NONE,
- GST_TYPE_AUDIO_AMPLIFY) &&
- gst_element_register (plugin, "audiodynamic", GST_RANK_NONE,
- GST_TYPE_AUDIO_DYNAMIC) &&
- gst_element_register (plugin, "audiocheblimit", GST_RANK_NONE,
- GST_TYPE_AUDIO_CHEB_LIMIT) &&
- gst_element_register (plugin, "audiochebband", GST_RANK_NONE,
- GST_TYPE_AUDIO_CHEB_BAND) &&
- gst_element_register (plugin, "audioiirfilter", GST_RANK_NONE,
- GST_TYPE_AUDIO_IIR_FILTER) &&
- gst_element_register (plugin, "audiowsinclimit", GST_RANK_NONE,
- GST_TYPE_AUDIO_WSINC_LIMIT) &&
- gst_element_register (plugin, "audiowsincband", GST_RANK_NONE,
- GST_TYPE_AUDIO_WSINC_BAND) &&
- gst_element_register (plugin, "audiofirfilter", GST_RANK_NONE,
- GST_TYPE_AUDIO_FIR_FILTER) &&
- gst_element_register (plugin, "audioecho", GST_RANK_NONE,
- GST_TYPE_AUDIO_ECHO) &&
- gst_element_register (plugin, "scaletempo", GST_RANK_NONE,
- GST_TYPE_SCALETEMPO) &&
- gst_element_register (plugin, "stereo", GST_RANK_NONE, GST_TYPE_STEREO));
+ gboolean ret = FALSE;
+
+ ret |= GST_ELEMENT_REGISTER (audiopanorama, plugin);
+ ret |= GST_ELEMENT_REGISTER (audioinvert, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiokaraoke, plugin);
+ ret |= GST_ELEMENT_REGISTER (audioamplify, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiodynamic, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiocheblimit, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiochebband, plugin);
+ ret |= GST_ELEMENT_REGISTER (audioiirfilter, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiowsinclimit, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiowsincband, plugin);
+ ret |= GST_ELEMENT_REGISTER (audiofirfilter, plugin);
+ ret |= GST_ELEMENT_REGISTER (audioecho, plugin);
+ ret |= GST_ELEMENT_REGISTER (scaletempo, plugin);
+ ret |= GST_ELEMENT_REGISTER (stereo, plugin);
+
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
diff --git a/gst/audiofx/audioiirfilter.c b/gst/audiofx/audioiirfilter.c
index 867bc9bf8..fae565c9c 100644
--- a/gst/audiofx/audioiirfilter.c
+++ b/gst/audiofx/audioiirfilter.c
@@ -80,6 +80,8 @@ static guint gst_audio_iir_filter_signals[LAST_SIGNAL] = { 0, };
#define gst_audio_iir_filter_parent_class parent_class
G_DEFINE_TYPE (GstAudioIIRFilter, gst_audio_iir_filter,
GST_TYPE_AUDIO_FX_BASE_IIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audioiirfilter, "audioiirfilter",
+ GST_RANK_NONE, GST_TYPE_AUDIO_IIR_FILTER);
static void gst_audio_iir_filter_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audioiirfilter.h b/gst/audiofx/audioiirfilter.h
index ab39c5be9..df3e51843 100644
--- a/gst/audiofx/audioiirfilter.h
+++ b/gst/audiofx/audioiirfilter.h
@@ -65,6 +65,8 @@ struct _GstAudioIIRFilterClass {
GType gst_audio_iir_filter_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audioiirfilter);
+
G_END_DECLS
#endif /* __GST_AUDIO_IIR_FILTER_H__ */
diff --git a/gst/audiofx/audioinvert.c b/gst/audiofx/audioinvert.c
index eeb3e784b..a51735304 100644
--- a/gst/audiofx/audioinvert.c
+++ b/gst/audiofx/audioinvert.c
@@ -71,6 +71,8 @@ enum
" layout=(string) {interleaved, non-interleaved}"
G_DEFINE_TYPE (GstAudioInvert, gst_audio_invert, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audioinvert, "audioinvert",
+ GST_RANK_NONE, GST_TYPE_AUDIO_INVERT);
static void gst_audio_invert_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audioinvert.h b/gst/audiofx/audioinvert.h
index cbb5b3f44..342d0df39 100644
--- a/gst/audiofx/audioinvert.h
+++ b/gst/audiofx/audioinvert.h
@@ -56,5 +56,7 @@ struct _GstAudioInvertClass
GType gst_audio_invert_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audioinvert);
+
G_END_DECLS
#endif /* __GST_AUDIO_INVERT_H__ */
diff --git a/gst/audiofx/audiokaraoke.c b/gst/audiofx/audiokaraoke.c
index 0d0292603..2bd8dfdd6 100644
--- a/gst/audiofx/audiokaraoke.c
+++ b/gst/audiofx/audiokaraoke.c
@@ -78,6 +78,8 @@ enum
" layout=(string) interleaved"
G_DEFINE_TYPE (GstAudioKaraoke, gst_audio_karaoke, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiokaraoke, "audiokaraoke",
+ GST_RANK_NONE, GST_TYPE_AUDIO_KARAOKE);
static void gst_audio_karaoke_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiokaraoke.h b/gst/audiofx/audiokaraoke.h
index 1391efc33..5fef3924d 100644
--- a/gst/audiofx/audiokaraoke.h
+++ b/gst/audiofx/audiokaraoke.h
@@ -63,5 +63,7 @@ struct _GstAudioKaraokeClass
GType gst_audio_karaoke_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiokaraoke);
+
G_END_DECLS
#endif /* __GST_AUDIO_KARAOKE_H__ */
diff --git a/gst/audiofx/audiopanorama.c b/gst/audiofx/audiopanorama.c
index 31544e389..3856a951c 100644
--- a/gst/audiofx/audiopanorama.c
+++ b/gst/audiofx/audiopanorama.c
@@ -103,6 +103,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
);
G_DEFINE_TYPE (GstAudioPanorama, gst_audio_panorama, GST_TYPE_BASE_TRANSFORM);
+GST_ELEMENT_REGISTER_DEFINE (audiopanorama, "audiopanorama",
+ GST_RANK_NONE, GST_TYPE_AUDIO_PANORAMA);
static void gst_audio_panorama_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiopanorama.h b/gst/audiofx/audiopanorama.h
index 44d1cec2b..36a063331 100644
--- a/gst/audiofx/audiopanorama.h
+++ b/gst/audiofx/audiopanorama.h
@@ -63,6 +63,8 @@ struct _GstAudioPanoramaClass {
GType gst_audio_panorama_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiopanorama);
+
G_END_DECLS
#endif /* __GST_AUDIO_PANORAMA_H__ */
diff --git a/gst/audiofx/audiowsincband.c b/gst/audiofx/audiowsincband.c
index 305673926..8a512f700 100644
--- a/gst/audiofx/audiowsincband.c
+++ b/gst/audiofx/audiowsincband.c
@@ -142,6 +142,8 @@ gst_gst_audio_wsincband_window_get_type (void)
#define gst_audio_wsincband_parent_class parent_class
G_DEFINE_TYPE (GstAudioWSincBand, gst_audio_wsincband,
GST_TYPE_AUDIO_FX_BASE_FIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiowsincband, "audiowsincband",
+ GST_RANK_NONE, GST_TYPE_AUDIO_WSINC_BAND);
static void gst_audio_wsincband_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiowsincband.h b/gst/audiofx/audiowsincband.h
index 27c2bd479..d7795f2f8 100644
--- a/gst/audiofx/audiowsincband.h
+++ b/gst/audiofx/audiowsincband.h
@@ -75,6 +75,8 @@ struct _GstAudioWSincBandClass {
GType gst_audio_wsincband_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiowsincband);
+
G_END_DECLS
#endif /* __GST_AUDIO_WSINC_BAND_H__ */
diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c
index 95c62be38..dd5a1dfba 100644
--- a/gst/audiofx/audiowsinclimit.c
+++ b/gst/audiofx/audiowsinclimit.c
@@ -141,6 +141,8 @@ gst_audio_wsinclimit_window_get_type (void)
#define gst_audio_wsinclimit_parent_class parent_class
G_DEFINE_TYPE (GstAudioWSincLimit, gst_audio_wsinclimit,
GST_TYPE_AUDIO_FX_BASE_FIR_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (audiowsinclimit, "audiowsinclimit",
+ GST_RANK_NONE, GST_TYPE_AUDIO_WSINC_LIMIT);
static void gst_audio_wsinclimit_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
diff --git a/gst/audiofx/audiowsinclimit.h b/gst/audiofx/audiowsinclimit.h
index e7fa915a0..ffd24b57a 100644
--- a/gst/audiofx/audiowsinclimit.h
+++ b/gst/audiofx/audiowsinclimit.h
@@ -75,6 +75,8 @@ struct _GstAudioWSincLimitClass {
GType gst_audio_wsinclimit_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiowsinclimit);
+
G_END_DECLS
#endif /* __GST_AUDIO_WSINC_LIMIT_H__ */
diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c
index 276ec07b1..646181fca 100644
--- a/gst/audiofx/gstscaletempo.c
+++ b/gst/audiofx/gstscaletempo.c
@@ -112,6 +112,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
#define gst_scaletempo_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE (GstScaletempo, gst_scaletempo,
GST_TYPE_BASE_TRANSFORM, DEBUG_INIT (0));
+GST_ELEMENT_REGISTER_DEFINE (scaletempo, "scaletempo",
+ GST_RANK_NONE, GST_TYPE_SCALETEMPO);
#define CREATE_BEST_OVERLAP_OFFSET_FLOAT_FUNC(type) \
static guint \
diff --git a/gst/audiofx/gstscaletempo.h b/gst/audiofx/gstscaletempo.h
index 051881d5d..02760fb6e 100644
--- a/gst/audiofx/gstscaletempo.h
+++ b/gst/audiofx/gstscaletempo.h
@@ -95,5 +95,7 @@ struct _GstScaletempoClass
GType gst_scaletempo_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (scaletempo);
+
G_END_DECLS
#endif /* __GST_SCALETEMPO_H__ */
diff --git a/gst/audiofx/gststereo.c b/gst/audiofx/gststereo.c
index 1a1ef75c4..fb299f191 100644
--- a/gst/audiofx/gststereo.c
+++ b/gst/audiofx/gststereo.c
@@ -73,6 +73,7 @@ static GstFlowReturn gst_stereo_transform_ip (GstBaseTransform * base,
GstBuffer * outbuf);
G_DEFINE_TYPE (GstStereo, gst_stereo, GST_TYPE_AUDIO_FILTER);
+GST_ELEMENT_REGISTER_DEFINE (stereo, "stereo", GST_RANK_NONE, GST_TYPE_STEREO);
static void
gst_stereo_class_init (GstStereoClass * klass)
diff --git a/gst/audiofx/gststereo.h b/gst/audiofx/gststereo.h
index bd7b6c15b..cf7757c5f 100644
--- a/gst/audiofx/gststereo.h
+++ b/gst/audiofx/gststereo.h
@@ -52,4 +52,6 @@ struct _GstStereoClass {
GType gst_stereo_get_type(void);
+GST_ELEMENT_REGISTER_DECLARE (stereo);
+
#endif /* __GST_STEREO_H__ */