[pulseaudio-discuss] [PATCH v2 09/12] modules: Check pa_threaded_mainloop_start() return value
Peter Meerwald
pmeerw at pmeerw.net
Tue Sep 15 15:01:47 PDT 2015
From: Peter Meerwald <p.meerwald at bct-electronic.com>
CID 1138500
---
src/modules/module-zeroconf-publish.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c
index ac139e9..9707a40 100644
--- a/src/modules/module-zeroconf-publish.c
+++ b/src/modules/module-zeroconf-publish.c
@@ -766,7 +766,8 @@ int pa__init(pa_module*m) {
pa_xfree(hn);
pa_threaded_mainloop_set_name(u->mainloop, "avahi-ml");
- pa_threaded_mainloop_start(u->mainloop);
+ if (pa_threaded_mainloop_start(u->mainloop) < 0)
+ goto fail;
pa_threaded_mainloop_lock(u->mainloop);
pa_mainloop_api_once(u->api, create_client, u);
--
1.9.1
More information about the pulseaudio-discuss
mailing list