split pa_memblockq_flush() into two flush commands, one which fixes up the read ptr, and one which fixes up the write ptr

This commit is contained in:
Lennart Poettering 2008-06-26 00:39:31 +02:00
parent 5fccac94e7
commit 1514d13835
5 changed files with 45 additions and 25 deletions

View file

@ -664,7 +664,7 @@ void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in sink sam
/* We were asked to drop all buffered data, and rerequest new
* data from implementor the next time push() is called */
pa_memblockq_flush(i->thread_info.render_memblockq);
pa_memblockq_flush_write(i->thread_info.render_memblockq);
} else if (i->thread_info.rewrite_nbytes > 0) {
size_t max_rewrite, amount;