From 8d55213288e95eff8f8ac95a7990eee77732e9ce Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 10 Mar 2025 13:23:10 +0100 Subject: [PATCH] stream: don't emit process when disconnecting Commit b160a72018656505e4ae4ec26308177c033da627 introduced this change before, but it was omitted in e1e0a886d524cbd3cbd339c79b4c38514cb11e39. This makes again sure we don't call process callback while disconnecting stream. Fixes #3314 --- src/pipewire/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 5e5aed3b7..4af3a3afa 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -446,7 +446,7 @@ static inline void call_process(struct stream *impl) if (impl->n_buffers == 0 || (impl->direction == SPA_DIRECTION_OUTPUT && update_requested(impl) <= 0)) return; - if (impl->rt_callbacks.funcs) + if (impl->rt_callbacks.funcs && !impl->disconnecting) spa_callbacks_call_fast(&impl->rt_callbacks, struct pw_stream_events, process, 0); }