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
This commit is contained in:
Lennart Poettering 2006-04-12 17:09:51 +00:00
parent 64d0d9bfbf
commit a0c7ca00e7

View file

@ -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);
}