mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
modules: Check pa_threaded_mainloop_start() return value
CID 1138500
This commit is contained in:
parent
b3e4d28d25
commit
05d964cf81
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue