mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
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:
parent
64d0d9bfbf
commit
a0c7ca00e7
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue