From c0451487611b4338397377207fc479caf1dcd5f7 Mon Sep 17 00:00:00 2001 From: anders Date: Sun, 27 Jan 2002 10:41:43 +0000 Subject: [PATCH] Fixed sig 11 caused by resampling plugin, some cosmetic changes and speed improvements git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4375 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_plugin.c | 2 +- libao2/pl_delay.c | 16 +++++++--------- libao2/pl_resample.c | 4 ++-- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/libao2/ao_plugin.c b/libao2/ao_plugin.c index 72910062f5..9c84ce4d05 100644 --- a/libao2/ao_plugin.c +++ b/libao2/ao_plugin.c @@ -159,7 +159,7 @@ static int init(int rate,int channels,int format,int flags){ if(!ok) return 0; - // Allocate output buffer */ + // Allocate output buffer if(ao_plugin_local_data.buf) free(ao_plugin_local_data.buf); ao_plugin_local_data.buf=malloc(MAX_OUTBURST); diff --git a/libao2/pl_delay.c b/libao2/pl_delay.c index 70c5a37c69..3d0f457dc4 100644 --- a/libao2/pl_delay.c +++ b/libao2/pl_delay.c @@ -101,18 +101,16 @@ static void reset(){ // processes 'ao_plugin_data.len' bytes of 'data' // called for every block of data static int play(){ - int i=0; - int j=0; - int k=0; // Copy end of prev block to begining of buffer - for(i=0;i