summaryrefslogtreecommitdiffstats
path: root/gst/equalizer/gstiirequalizernbands.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-11-03 19:50:11 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-11-03 19:50:11 +0000
commitf627f21233890b35e0420171c67b2b380108da73 (patch)
treecaa05e9b4a6a00f37516cf11678d9902253578ea /gst/equalizer/gstiirequalizernbands.c
parentc67ad65c91417d171692d34e49e412516895ac3a (diff)
downloadgst-plugins-bad-f627f21233890b35e0420171c67b2b380108da73.tar.gz
gst-plugins-bad-f627f21233890b35e0420171c67b2b380108da73.tar.bz2
gst-plugins-bad-f627f21233890b35e0420171c67b2b380108da73.zip
gst/equalizer/: Allow setting 0 as bandwidth and handle this correctly.
Original commit message from CVS: * gst/equalizer/demo.c: (main): * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_band_class_init), (setup_filter): Allow setting 0 as bandwidth and handle this correctly. Also handle a bandwidth of rate/2 properly. * gst/equalizer/gstiirequalizernbands.c: (gst_iir_equalizer_nbands_class_init): Make it possible to generate a N-band equalizer with 1 bands. The previous limit of 2 was caused by a nowadays replaced calculation doing a division by zero if number of bands was 1.
Diffstat (limited to 'gst/equalizer/gstiirequalizernbands.c')
-rw-r--r--gst/equalizer/gstiirequalizernbands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/equalizer/gstiirequalizernbands.c b/gst/equalizer/gstiirequalizernbands.c
index b6482f6e..a3401b33 100644
--- a/gst/equalizer/gstiirequalizernbands.c
+++ b/gst/equalizer/gstiirequalizernbands.c
@@ -84,7 +84,7 @@ gst_iir_equalizer_nbands_class_init (GstIirEqualizerNBandsClass * klass)
g_object_class_install_property (gobject_class, ARG_NUM_BANDS,
g_param_spec_uint ("num-bands", "num-bands",
- "number of different bands to use", 2, 64, 10,
+ "number of different bands to use", 1, 64, 10,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
}