diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2012-04-25 09:49:08 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2012-04-27 11:36:56 +0300 |
commit | af78613b7042d313c4bbc0df680db5fcd64f0f6c (patch) | |
tree | 5e4baa1536979f2a5dcb916d340fdb27b1b1f1da | |
parent | fed2d8d4e862a71e09d311b4af7ee6ed67a57fc9 (diff) |
echo-cancel: Drop the correct amount of samples when skipping.
-rw-r--r-- | src/modules/echo-cancel/module-echo-cancel.c | 2 |
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; |