mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -2031,7 +2031,7 @@ int pw_stream_set_active(struct pw_stream *stream, bool active)
|
||||||
if (impl->node)
|
if (impl->node)
|
||||||
pw_impl_node_set_active(impl->node, active);
|
pw_impl_node_set_active(impl->node, active);
|
||||||
|
|
||||||
if (!active)
|
if (!active || impl->drained)
|
||||||
impl->drained = impl->draining = false;
|
impl->drained = impl->draining = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue