stream: don't emit process when disconnecting

Commit b160a72018 introduced this change
before, but it was omitted in e1e0a886d5.

This makes again sure we don't call process callback while disconnecting
stream.

Fixes #3314
This commit is contained in:
Jan Grulich 2025-03-10 13:23:10 +01:00 committed by Wim Taymans
parent 06438cbc9a
commit 8d55213288

View file

@ -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);
}