From 751d88717e972410bbb5dd3f90033edbd89ffea5 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 6 Nov 2016 12:54:16 -0600 Subject: [PATCH] raop: Do not flush when RTSP object is not ready 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 90488e495..cf415d00b 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) {