Mercurial > hg > xmms-sid
diff src/xs_sidplay2.cc @ 577:fdddab8f0c1b
Scrubbing through the filter configuration code; Configuration dialog
window delete event was not handled and caused problems if WM's "close window"
was used, fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 Mar 2007 13:43:00 +0000 |
parents | 4674e3c37121 |
children | acaba070cf49 |
line wrap: on
line diff
--- a/src/xs_sidplay2.cc Tue Mar 20 13:14:02 2007 +0000 +++ b/src/xs_sidplay2.cc Tue Mar 20 13:43:00 2007 +0000 @@ -204,6 +204,11 @@ /* Convert filter */ f = &(xs_cfg.sid2Filter); XSDEBUG("using filter '%s', %d points\n", f->name, f->npoints); + if (f->npoints > XS_SIDPLAY2_NFPOINTS) { + xs_error(_("[SIDPlay2] Invalid number of filter curve points (%d > %d)\n"), + f->npoints, XS_SIDPLAY2_NFPOINTS); + f->npoints = XS_SIDPLAY2_NFPOINTS; + } tmpFilter.points = f->npoints; for (i = 0; i < f->npoints; i++) {