comparison libao2/ao_plugin.c @ 4374:0a95c5074c50

Fixed sig 11 caused by resampling plugin, some cosmetic changes and speed improvements
author anders
date Sun, 27 Jan 2002 10:41:43 +0000
parents 1dbffed555a6
children bd108c2796ab
comparison
equal deleted inserted replaced
4373:4f36681c95f8 4374:0a95c5074c50
157 while((i>0) && ok) 157 while((i>0) && ok)
158 ok=plugin(--i)->control(AOCONTROL_PLUGIN_SET_LEN,0); 158 ok=plugin(--i)->control(AOCONTROL_PLUGIN_SET_LEN,0);
159 159
160 if(!ok) return 0; 160 if(!ok) return 0;
161 161
162 // Allocate output buffer */ 162 // Allocate output buffer
163 if(ao_plugin_local_data.buf) 163 if(ao_plugin_local_data.buf)
164 free(ao_plugin_local_data.buf); 164 free(ao_plugin_local_data.buf);
165 ao_plugin_local_data.buf=malloc(MAX_OUTBURST); 165 ao_plugin_local_data.buf=malloc(MAX_OUTBURST);
166 166
167 if(!ao_plugin_local_data.buf) return 0; 167 if(!ao_plugin_local_data.buf) return 0;