mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Propagate return value from pa_pstream_attach_memfd_shmid
Using wine, The mmap call in shm_attach sometimes fails with ENOMEM which isn't propagated up the call stack. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/747>
This commit is contained in:
parent
f2b748e851
commit
3f9455411c
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ int pa_common_command_register_memfd_shmid(pa_pstream *p, pa_pdispatch *pd, uint
|
|||
if (version < 31 || pa_tagstruct_getu32(t, &shm_id) < 0 || !pa_tagstruct_eof(t))
|
||||
goto finish;
|
||||
|
||||
pa_pstream_attach_memfd_shmid(p, shm_id, ancil->fds[0]);
|
||||
if (pa_pstream_attach_memfd_shmid(p, shm_id, ancil->fds[0]))
|
||||
goto finish;
|
||||
|
||||
ret = 0;
|
||||
finish:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue