[pulseaudio-discuss] [PATCH v7 22/33] raop: Do not flush when RTSP object is not ready

Hajime Fujita crisp.fujita at gmail.com
Sun Nov 6 18:54:16 UTC 2016


From: Stephen Paul Weber <github at singpolyma.net>

This patch fixes a crash issue reported at
https://github.com/hfujita/pulseaudio-raop2/issues/9
---
 src/modules/raop/raop-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/raop/raop-client.c b/src/modules/raop/raop-client.c
index 90488e4..cf415d0 100644
--- a/src/modules/raop/raop-client.c
+++ b/src/modules/raop/raop-client.c
@@ -1596,7 +1596,7 @@ int pa_raop_client_flush(pa_raop_client *c) {
 
     pa_assert(c);
 
-    if (!c->rtsp) {
+    if (!c->rtsp || !pa_rtsp_exec_ready(c->rtsp)) {
         pa_log_debug("Cannot FLUSH, connection not established yet...)");
         return 0;
     } else if (!c->sci) {
-- 
2.9.3



More information about the pulseaudio-discuss mailing list