mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
client-node: take data_loop and system from node
This commit is contained in:
parent
2dd3a00bb5
commit
ff6a86644b
1 changed files with 3 additions and 11 deletions
|
|
@ -1140,17 +1140,6 @@ node_init(struct node *this,
|
|||
uint32_t n_support)
|
||||
{
|
||||
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
|
||||
this->data_loop = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DataLoop);
|
||||
this->data_system = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_DataSystem);
|
||||
|
||||
if (this->data_loop == NULL) {
|
||||
spa_log_error(this->log, "a data-loop is needed");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (this->data_system == NULL) {
|
||||
spa_log_error(this->log, "a data-system is needed");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
this->node.iface = SPA_INTERFACE_INIT(
|
||||
SPA_TYPE_INTERFACE_Node,
|
||||
|
|
@ -1738,6 +1727,9 @@ struct pw_impl_client_node *pw_impl_client_node_new(struct pw_resource *resource
|
|||
if (this->node == NULL)
|
||||
goto error_no_node;
|
||||
|
||||
impl->node.data_loop = this->node->data_loop->loop;
|
||||
impl->node.data_system = this->node->data_loop->system;
|
||||
|
||||
this->node->remote = true;
|
||||
this->flags = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue