[pulseaudio-discuss] [PATCH v7 29/33] raop: Disable is_recording flag when tearing down the connection
Hajime Fujita
crisp.fujita at gmail.com
Sun Nov 6 18:54:23 UTC 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 bbef59d..68d188a 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;
@@ -1631,6 +1629,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.9.3
More information about the pulseaudio-discuss
mailing list