From 90fe579b29314b222ab6fcaa4d1885922e76af4f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 5 Nov 2021 15:45:55 +0100 Subject: [PATCH] stream: make _set_active(true) leave the draining state If the stream is drained, make _set_active(true) leave the draining state so that the process() events are emitted again and buffers will be pushed(). --- src/pipewire/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index d56ed28cd..4c322d57f 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -2031,7 +2031,7 @@ int pw_stream_set_active(struct pw_stream *stream, bool active) if (impl->node) pw_impl_node_set_active(impl->node, active); - if (!active) + if (!active || impl->drained) impl->drained = impl->draining = false; return 0; }