From 56df6fed130fbeb072fcbaa322a12c52a2d06522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 7 Sep 2022 03:24:04 +0200 Subject: [PATCH] pipewire: rtsp-client: reset receive state when connected Previously, the state used to receive messages from the remote end was not reset when the client connected, which could lead to issues if the same client is reused for multiple connections. --- src/modules/module-raop/rtsp-client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/module-raop/rtsp-client.c b/src/modules/module-raop/rtsp-client.c index c01b46ef6..5666e1e61 100644 --- a/src/modules/module-raop/rtsp-client.c +++ b/src/modules/module-raop/rtsp-client.c @@ -186,6 +186,11 @@ static int handle_connect(struct pw_rtsp_client *client, int fd) client->connecting = false; client->wait_status = true; + + pw_properties_clear(client->headers); + client->status = 0; + client->line_pos = 0; + pw_rtsp_client_emit_connected(client); return 0;