mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-loopback: deactive both streams before destroying
First deactivate both streams so that they are not calling eachother anymore and then destroy the streams.
This commit is contained in:
parent
bc2cf226d7
commit
9f2abea480
1 changed files with 3 additions and 3 deletions
|
|
@ -513,11 +513,11 @@ static const struct pw_proxy_events core_proxy_events = {
|
|||
|
||||
static void impl_destroy(struct impl *impl)
|
||||
{
|
||||
/* disconnect both streams before destroying any of them */
|
||||
/* deactivate both streams before destroying any of them */
|
||||
if (impl->capture)
|
||||
pw_stream_disconnect(impl->capture);
|
||||
pw_stream_set_active(impl->capture, false);
|
||||
if (impl->playback)
|
||||
pw_stream_disconnect(impl->playback);
|
||||
pw_stream_set_active(impl->playback, false);
|
||||
|
||||
if (impl->capture)
|
||||
pw_stream_destroy(impl->capture);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue