mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
pass the client object around
Pass the client object around, it's easier to deal with than the sender id. Fix the ASYNC return check Don't overwrite the fds of a pollitem, instead keep an index of their position in the global fd array.
This commit is contained in:
parent
7b53fa8685
commit
c6861845a7
14 changed files with 123 additions and 79 deletions
|
|
@ -153,7 +153,7 @@ pinos_node_factory_get_name (PinosNodeFactory *factory)
|
|||
* pinos_node_factory_create_node:
|
||||
* @factory: A #PinosNodeFactory
|
||||
* @daemon: a #PinosDaemon
|
||||
* @sender: the path of the owner
|
||||
* @client: the owner client
|
||||
* @name: node name
|
||||
* @props: #PinosProperties for the node
|
||||
*
|
||||
|
|
@ -164,7 +164,7 @@ pinos_node_factory_get_name (PinosNodeFactory *factory)
|
|||
PinosNode *
|
||||
pinos_node_factory_create_node (PinosNodeFactory *factory,
|
||||
PinosDaemon *daemon,
|
||||
const gchar *sender,
|
||||
PinosClient *client,
|
||||
const gchar *name,
|
||||
PinosProperties *props)
|
||||
{
|
||||
|
|
@ -177,5 +177,5 @@ pinos_node_factory_create_node (PinosNodeFactory *factory,
|
|||
return NULL;
|
||||
|
||||
g_debug ("node factory %p: create node", factory);
|
||||
return klass->create_node (factory, daemon, sender, name, props);
|
||||
return klass->create_node (factory, daemon, client, name, props);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue