[pulseaudio-discuss] [PATCH v6 33/37] raop: Disable is_recording flag when tearing down the connection
Hajime Fujita
crisp.fujita at gmail.com
Sun Jan 31 20:16:30 PST 2016
From: Hajime Fujita <crisp.fujita at nifty.com>
This patch is based on a similar idea as the previous one -- disabling
the flag right after the session is getting closed, rather than waiting
for a response from the server.
---
src/modules/raop/raop-client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/raop/raop-client.c b/src/modules/raop/raop-client.c
index 9dc40f4..533dc81 100644
--- a/src/modules/raop/raop-client.c
+++ b/src/modules/raop/raop-client.c
@@ -1120,8 +1120,6 @@ static void rtsp_stream_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_
case STATE_TEARDOWN: {
pa_log_debug("RAOP: TEARDOWN");
- c->is_recording = false;
-
if (c->tcp_sfd > 0)
pa_close(c->tcp_sfd);
c->tcp_sfd = -1;
@@ -1630,6 +1628,8 @@ int pa_raop_client_teardown(pa_raop_client *c) {
return 1;
}
+ c->is_recording = false;
+
rv = pa_rtsp_teardown(c->rtsp);
return rv;
}
--
2.5.0
More information about the pulseaudio-discuss
mailing list