summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/echo-cancel/module-echo-cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index 31d8433b..5ca5d1e2 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;