mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
rt-poll: make small poll helper object
Remove the event loop code into a separate object so that we can share the same loop for multiple nodes. Some cleanups
This commit is contained in:
parent
b9409e297b
commit
7b53fa8685
11 changed files with 517 additions and 239 deletions
|
|
@ -162,9 +162,19 @@ static void
|
|||
pinos_client_node_dispose (GObject * object)
|
||||
{
|
||||
PinosClientNode *this = PINOS_CLIENT_NODE (object);
|
||||
PinosNode *node = PINOS_NODE (this);
|
||||
SpaProps *props;
|
||||
SpaPropValue value;
|
||||
int fd = -1;
|
||||
|
||||
g_debug ("client-node %p: dispose", this);
|
||||
|
||||
spa_node_get_props (node->node, &props);
|
||||
value.value = &fd;
|
||||
value.size = sizeof (int);
|
||||
spa_props_set_prop (props, spa_props_index_for_name (props, "socket"), &value);
|
||||
spa_node_set_props (node->node, props);
|
||||
|
||||
G_OBJECT_CLASS (pinos_client_node_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue