From bd7ce5c7fa85cb982bb138aaabdfcacc9e7386e2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 24 Jun 2025 18:21:28 +0200 Subject: [PATCH] pulse-server: only react to state changes when not corked When we are starting or corked we don't emit suspend/resume caused by state changes. --- src/modules/module-protocol-pulse/pulse-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index e8cf29d79..5f5cd558f 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1129,7 +1129,7 @@ static void stream_state_changed(void *data, enum pw_stream_state old, /* Don't emit suspended if we are creating a corked stream, as that will have a quick * RUNNING/SUSPENDED transition for initial negotiation */ - if (stream->create_tag == SPA_ID_INVALID || !stream->corked) { + if (stream->create_tag == SPA_ID_INVALID && !stream->corked) { if (old == PW_STREAM_STATE_PAUSED && state == PW_STREAM_STATE_STREAMING) stream_send_suspended(stream, false); if (old == PW_STREAM_STATE_STREAMING && state == PW_STREAM_STATE_PAUSED)