mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse: clear queued bytes on flush
This commit is contained in:
parent
7c5192bc31
commit
7a50026a2c
1 changed files with 1 additions and 0 deletions
|
|
@ -1568,6 +1568,7 @@ pa_operation* pa_stream_flush(pa_stream *s, pa_stream_success_cb_t cb, void *use
|
||||||
b->user_data = NULL;
|
b->user_data = NULL;
|
||||||
}
|
}
|
||||||
s->ready_bytes = 0;
|
s->ready_bytes = 0;
|
||||||
|
s->queued_bytes = 0;
|
||||||
s->timing_info.write_index = s->timing_info.read_index = 0;
|
s->timing_info.write_index = s->timing_info.read_index = 0;
|
||||||
s->have_time = false;
|
s->have_time = false;
|
||||||
pa_operation_sync(o);
|
pa_operation_sync(o);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue