[PATCH] echo-cancel: Drop the correct amount of samples when skipping.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-04-25 at 09:49 +0300, Tanu Kaskinen wrote:
> ---
>  src/modules/echo-cancel/module-echo-cancel.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
> index 31d8433..5ca5d1e 100644
> --- a/src/modules/echo-cancel/module-echo-cancel.c
> +++ b/src/modules/echo-cancel/module-echo-cancel.c
> @@ -916,7 +916,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
>              pa_source_post(u->source, &rchunk);
>  
>              pa_memblock_unref(rchunk.memblock);
> -            pa_memblockq_drop(u->source_memblockq, u->blocksize);
> +            pa_memblockq_drop(u->source_memblockq, to_skip);
>  
>              rlen -= to_skip;
>              u->source_skip -= to_skip;

All 3 patches look good. Please go ahead and push them.

-- Arun



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux