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().
This commit is contained in:
Wim Taymans 2021-11-05 15:45:55 +01:00
parent 0cccff517b
commit 90fe579b29

View file

@ -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;
}