mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
pulse: fix drain
The drain operation does not complete with a sync from the server but with an event from the stream. Set a flag in the operation that it completes with a sync. Keep all operations without a sync around in the list.
This commit is contained in:
parent
a9c0435317
commit
688041b083
4 changed files with 12 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ int pa_operation_sync(pa_operation *o)
|
|||
{
|
||||
pa_context *c = o->context;
|
||||
c->pending_seq = pw_core_sync(c->core, PW_ID_CORE, 0);
|
||||
o->sync = true;
|
||||
pw_log_debug("operation %p: sync seq:%d", o, c->pending_seq);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue