mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
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:
parent
5fccac94e7
commit
1514d13835
5 changed files with 45 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue