From 9f2abea48060efdfa13c8802b72356130ae0652a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 5 Dec 2022 16:05:37 +0100 Subject: [PATCH] module-loopback: deactive both streams before destroying First deactivate both streams so that they are not calling eachother anymore and then destroy the streams. --- src/modules/module-loopback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index 505ff1c13..321ed05bb 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -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);