mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
protocol-native: make the connection earlier
Make the connection as soon as we create the client. We create it without file descriptor and then set it when we connect. This makes it possible to use the connection to queue messages before we connect.
This commit is contained in:
parent
8bb1ccf587
commit
0b2e4a18ff
3 changed files with 21 additions and 6 deletions
|
|
@ -266,6 +266,12 @@ no_mem:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int pw_protocol_native_connection_set_fd(struct pw_protocol_native_connection *conn, int fd)
|
||||
{
|
||||
conn->fd = fd;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** Destroy a connection
|
||||
*
|
||||
* \param conn the connection to destroy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue