From fa1350b0cf30f0965d739141b845535294c02238 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 22 Mar 2021 10:31:09 +0100 Subject: [PATCH] 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 --- src/modules/module-protocol-pulse/pulse-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 9799ef705..a3dd92407 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -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; }