mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
srbchannel: pa_srbchannel_new() may fail
return from setup_srbchannel() when pa_srbchannel_new() fails pa_srbchannel_new() depends on HAVE_SYS_EVENTFD_H, e.g. Debian/kFreeBSD doesn't have it Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
7974a17d1d
commit
fd19327327
1 changed files with 5 additions and 1 deletions
|
|
@ -2612,8 +2612,12 @@ static void setup_srbchannel(pa_native_connection *c) {
|
|||
return;
|
||||
}
|
||||
|
||||
pa_log_debug("Enabling srbchannel...");
|
||||
srb = pa_srbchannel_new(c->protocol->core->mainloop, c->protocol->core->rw_mempool);
|
||||
if (!srb) {
|
||||
pa_log_debug("Failed to create srbchannel");
|
||||
return;
|
||||
}
|
||||
pa_log_debug("Enabling srbchannel...");
|
||||
pa_srbchannel_export(srb, &srbt);
|
||||
|
||||
/* Send enable command to client */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue