mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04: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
|
|
@ -525,7 +525,7 @@ static int sink_input_process_msg(pa_msgobject *obj, int code, void *data, int64
|
|||
if (PA_SINK_IS_OPENED(o->sink_input->sink->thread_info.state))
|
||||
pa_memblockq_push_align(o->memblockq, chunk);
|
||||
else
|
||||
pa_memblockq_flush(o->memblockq);
|
||||
pa_memblockq_flush_write(o->memblockq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -555,7 +555,7 @@ static void enable_output(struct output *o) {
|
|||
|
||||
if (output_create_sink_input(o) >= 0) {
|
||||
|
||||
pa_memblockq_flush(o->memblockq);
|
||||
pa_memblockq_flush_write(o->memblockq);
|
||||
|
||||
pa_sink_input_put(o->sink_input);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue