audiofx: fix crash in process()

This commit is contained in:
René Stadler 2011-10-28 13:02:56 +02:00
parent 0b3f685dbd
commit 42f401a7eb

View file

@ -274,7 +274,7 @@ gst_audio_fx_base_iir_filter_setup (GstAudioFilter * base,
} }
filter->channels = g_new0 (GstAudioFXBaseIIRFilterChannelCtx, channels); filter->channels = g_new0 (GstAudioFXBaseIIRFilterChannelCtx, channels);
for (i = 0; i < filter->nchannels; i++) { for (i = 0; i < channels; i++) {
ctx = &filter->channels[i]; ctx = &filter->channels[i];
ctx->x = g_new0 (gdouble, filter->na); ctx->x = g_new0 (gdouble, filter->na);