stream: don't emit process when disconnecting

As part of the disconnect, we will flush out pending process calls. Make
sure we don't emit them because they are quite pointless.

Fixes #3314
This commit is contained in:
Wim Taymans 2023-06-27 15:08:24 +02:00
parent 4b32b1fef0
commit b160a72018

View file

@ -446,7 +446,8 @@ do_call_process(struct spa_loop *loop,
struct stream *impl = user_data;
struct pw_stream *stream = &impl->this;
pw_log_trace_fp("%p: do process", stream);
pw_stream_emit_process(stream);
if (!impl->disconnecting)
pw_stream_emit_process(stream);
return 0;
}