summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-11-19 20:30:19 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-11-19 20:30:19 +0000
commit9662a211521a8deef1cbe06ad1052243e7573515 (patch)
tree6156c95faa61af2140fb9df6a06eca1899547747 /gst
parentdcb8f93e7615a2c016870e547e5abc35cd7c958c (diff)
downloadgst-plugins-bad-9662a211521a8deef1cbe06ad1052243e7573515.tar.gz
gst-plugins-bad-9662a211521a8deef1cbe06ad1052243e7573515.tar.bz2
gst-plugins-bad-9662a211521a8deef1cbe06ad1052243e7573515.zip
gst/equalizer/: Activate preset iface and upload two presets here.
Original commit message from CVS: * gst/equalizer/gstiirequalizer10bands.c: * gst/equalizer/gstiirequalizer3bands.c: Activate preset iface and upload two presets here.
Diffstat (limited to 'gst')
-rw-r--r--gst/equalizer/gstiirequalizer10bands.c13
-rw-r--r--gst/equalizer/gstiirequalizer3bands.c13
2 files changed, 22 insertions, 4 deletions
diff --git a/gst/equalizer/gstiirequalizer10bands.c b/gst/equalizer/gstiirequalizer10bands.c
index e951077d..7741e79a 100644
--- a/gst/equalizer/gstiirequalizer10bands.c
+++ b/gst/equalizer/gstiirequalizer10bands.c
@@ -66,8 +66,17 @@ static void gst_iir_equalizer_10bands_get_property (GObject * object,
GST_DEBUG_CATEGORY_EXTERN (equalizer_debug);
#define GST_CAT_DEFAULT equalizer_debug
-GST_BOILERPLATE (GstIirEqualizer10Bands, gst_iir_equalizer_10bands,
- GstIirEqualizer, GST_TYPE_IIR_EQUALIZER);
+#define _do_init(bla) { \
+ const GInterfaceInfo preset_interface_info = { \
+ NULL, /* interface_init */ \
+ NULL, /* interface_finalize */ \
+ NULL /* interface_data */ \
+ }; \
+ g_type_add_interface_static(object_type, GST_TYPE_PRESET, &preset_interface_info); \
+ }
+
+GST_BOILERPLATE_FULL (GstIirEqualizer10Bands, gst_iir_equalizer_10bands,
+ GstIirEqualizer, GST_TYPE_IIR_EQUALIZER, _do_init);
/* equalizer implementation */
diff --git a/gst/equalizer/gstiirequalizer3bands.c b/gst/equalizer/gstiirequalizer3bands.c
index f1e11d50..5084dc1e 100644
--- a/gst/equalizer/gstiirequalizer3bands.c
+++ b/gst/equalizer/gstiirequalizer3bands.c
@@ -58,8 +58,17 @@ static void gst_iir_equalizer_3bands_get_property (GObject * object,
GST_DEBUG_CATEGORY_EXTERN (equalizer_debug);
#define GST_CAT_DEFAULT equalizer_debug
-GST_BOILERPLATE (GstIirEqualizer3Bands, gst_iir_equalizer_3bands,
- GstIirEqualizer, GST_TYPE_IIR_EQUALIZER);
+#define _do_init(bla) { \
+ const GInterfaceInfo preset_interface_info = { \
+ NULL, /* interface_init */ \
+ NULL, /* interface_finalize */ \
+ NULL /* interface_data */ \
+ }; \
+ g_type_add_interface_static(object_type, GST_TYPE_PRESET, &preset_interface_info); \
+ }
+
+GST_BOILERPLATE_FULL (GstIirEqualizer3Bands, gst_iir_equalizer_3bands,
+ GstIirEqualizer, GST_TYPE_IIR_EQUALIZER, _do_init);
/* equalizer implementation */