mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-26 21:38:23 -04:00
modules: loop_add_io with close=true owns the fd
We should not close the fd when loop_add_io with close=true fails because the fd is already closed.
This commit is contained in:
parent
eec372ba9d
commit
8907d0860b
6 changed files with 9 additions and 20 deletions
|
|
@ -693,9 +693,8 @@ static void stream_open_connection(void *data, int *result)
|
|||
impl->source = pw_loop_add_io(impl->data_loop, fd,
|
||||
SPA_IO_IN, true, on_rtp_io, impl);
|
||||
if (impl->source == NULL) {
|
||||
pw_log_error("can't create io source: %m");
|
||||
close(fd);
|
||||
res = -errno;
|
||||
pw_log_error("can't create io source: %m");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue