equalizer: Fix stupid off by two bug

This commit is contained in:
Sebastian Dröge 2009-11-05 10:30:46 +01:00
parent 9405a328b1
commit 025e26f73a

View file

@ -602,7 +602,7 @@ update_coefficients (GstIirEqualizer * equ)
{ {
gint i, n = equ->freq_band_count; gint i, n = equ->freq_band_count;
for (i = 1; i < n - 1; i++) { for (i = 0; i < n; i++) {
if (equ->bands[i]->type == BAND_TYPE_PEAK) if (equ->bands[i]->type == BAND_TYPE_PEAK)
setup_peak_filter (equ, equ->bands[i]); setup_peak_filter (equ, equ->bands[i]);
else if (equ->bands[i]->type == BAND_TYPE_LOW_SHELF) else if (equ->bands[i]->type == BAND_TYPE_LOW_SHELF)