From 8b048279f1ac65b8c8ebe81f7b8ab528052cbd8f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 1 Dec 2020 09:37:40 +0100 Subject: [PATCH] pulse-server: handle error during create Use the create-tag in the error when the stream fails. This way the client can know when something failed during create. See #430 --- 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 c7bf41694..7941ed906 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1221,7 +1221,7 @@ static void stream_state_changed(void *data, enum pw_stream_state old, switch (state) { case PW_STREAM_STATE_ERROR: - reply_error(client, -1, -1, -EIO); + reply_error(client, -1, stream->create_tag, -EIO); stream->done = true; break; case PW_STREAM_STATE_UNCONNECTED: