mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
stream: use 2 eventfds for client <-> server signaling
This commit is contained in:
parent
f0aafb5b51
commit
7d1d3bd666
9 changed files with 80 additions and 56 deletions
|
|
@ -530,7 +530,8 @@ client_marshal_info (void *object,
|
|||
|
||||
static void
|
||||
client_node_marshal_done (void *object,
|
||||
int datafd)
|
||||
int readfd,
|
||||
int writefd)
|
||||
{
|
||||
PinosResource *resource = object;
|
||||
PinosConnection *connection = resource->client->protocol_private;
|
||||
|
|
@ -540,7 +541,8 @@ client_node_marshal_done (void *object,
|
|||
core_update_map (resource->client);
|
||||
|
||||
spa_pod_builder_struct (&b.b, &f,
|
||||
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, datafd));
|
||||
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, readfd),
|
||||
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, writefd));
|
||||
|
||||
pinos_connection_end_write (connection, resource->id, PINOS_CLIENT_NODE_EVENT_DONE, b.b.offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue