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:
Wim Taymans 2020-09-17 11:48:21 +02:00
parent a9c0435317
commit 688041b083
4 changed files with 12 additions and 1 deletions

View file

@ -491,6 +491,7 @@ struct pa_operation
int refcount;
pa_context *context;
pa_stream *stream;
unsigned int sync:1;
pa_operation_state_t state;