pulse-server: make sure we are active when draining

When we start draining, set ourselves active so that the process
function is called where the draining is completed.

This avoids a corked stream from waiting forever to drain the stream.

Fixes #946
This commit is contained in:
Wim Taymans 2021-03-22 10:31:09 +01:00
parent 80a6583271
commit fa1350b0cf

View file

@ -3752,6 +3752,8 @@ static int do_drain_stream(struct client *client, uint32_t command, uint32_t tag
stream->drain_tag = tag;
stream->draining = true;
pw_stream_set_active(stream->stream, true);
return 0;
}