Commit 40527375 authored by Simon Morlat's avatar Simon Morlat

fix ref bytes limit

parent b6b2f300
......@@ -126,7 +126,7 @@ static void speex_ec_process(MSFilter *f){
if (f->inputs[1]!=NULL){
int maxsize;
ms_bufferizer_put_from_queue (&s->echo,f->inputs[1]);
if ((maxsize=ms_bufferizer_get_avail(&s->echo))>s->ref_bytes_limit){
if ((maxsize=ms_bufferizer_get_avail(&s->echo))>=(s->ref_bytes_limit+nbytes)){
ms_message("ref_bytes_limit adjusted from %i to %i",s->ref_bytes_limit,maxsize);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment