mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
context: continue without srbchannel if it fails
We might be compiled without eventfd support, or something else might go wrong. And it's fully possible to continue using the old channel rather than just disconnecting. Signed-off-by: Pierre Ossman <ossman@cendio.se>
This commit is contained in:
parent
fc803b4883
commit
04eb815753
1 changed files with 5 additions and 1 deletions
|
|
@ -364,7 +364,11 @@ static void handle_srbchannel_memblock(pa_context *c, pa_memblock *memblock) {
|
||||||
pa_memblock_ref(memblock);
|
pa_memblock_ref(memblock);
|
||||||
sr = pa_srbchannel_new_from_template(c->mainloop, &c->srb_template);
|
sr = pa_srbchannel_new_from_template(c->mainloop, &c->srb_template);
|
||||||
if (!sr) {
|
if (!sr) {
|
||||||
pa_context_fail(c, PA_ERR_PROTOCOL);
|
pa_log_warn("Failed to create srbchannel from template");
|
||||||
|
c->srb_template.readfd = -1;
|
||||||
|
c->srb_template.writefd = -1;
|
||||||
|
pa_memblock_unref(c->srb_template.memblock);
|
||||||
|
c->srb_template.memblock = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue