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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stephen Paul Weber <github@xxxxxxxxxxxxxx>

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux