[pulseaudio-discuss] [PATCH v7 18/33] raop: Fix sink getting destroyed after one use
Hajime Fujita
crisp.fujita at gmail.com
Sun Nov 6 18:54:12 UTC 2016
From: Colin Leroy <colin at colino.net>
It is expected to get disconnected after switching back to a
different sink.
---
src/modules/raop/raop-sink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/raop/raop-sink.c b/src/modules/raop/raop-sink.c
index 23989d1..2d8157e 100644
--- a/src/modules/raop/raop-sink.c
+++ b/src/modules/raop/raop-sink.c
@@ -252,7 +252,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
if (u->sink->thread_info.state == PA_SINK_SUSPENDED)
pa_rtpoll_set_timer_disabled(u->rtpoll);
- else
+ else if (u->sink->thread_info.state != PA_SINK_IDLE)
pa_module_unload_request(u->module, true);
return 0;
--
2.9.3
More information about the pulseaudio-discuss
mailing list