mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
connection: add do_close flag to connect_fd
Make pw_remote_connect_fd() not automatically close the provided fd but let the caller take care of that. This allows us to reuse the fd in pipewiresrc. Fixes #155
This commit is contained in:
parent
5850044599
commit
216b641ebb
5 changed files with 13 additions and 11 deletions
|
|
@ -88,7 +88,7 @@ int pw_protocol_native_connect_local_socket(struct pw_protocol_client *client,
|
|||
goto error_close;
|
||||
}
|
||||
|
||||
res = pw_protocol_client_connect_fd(client, fd);
|
||||
res = pw_protocol_client_connect_fd(client, fd, true);
|
||||
|
||||
done_callback(data, res);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue