From: Lennart Poettering Date: Wed, 12 Apr 2006 17:09:51 +0000 (+0000) Subject: when flushin a memblockq, set the write index to the read index X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/a0c7ca00e73708844fdb68f63e616e843c828fd8 when flushin a memblockq, set the write index to the read index git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@683 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/polypcore/memblockq.c b/src/polypcore/memblockq.c index 517495eb..90e1d9eb 100644 --- a/src/polypcore/memblockq.c +++ b/src/polypcore/memblockq.c @@ -548,6 +548,8 @@ void pa_memblockq_flush(pa_memblockq *bq) { assert(bq->n_blocks == 0); + bq->write_index = bq->read_index; + pa_memblockq_prebuf_force(bq); }