mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
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:
parent
0cccff517b
commit
90fe579b29
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue