mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-node: set parent id and owner
Make sure we set the right parent id and owner for the client node and client-stream Move the remote id in the proxy object and use it in the stream to get the node id.
This commit is contained in:
parent
fe03ec8bde
commit
79a3b594f9
11 changed files with 39 additions and 19 deletions
|
|
@ -633,6 +633,7 @@ impl_node_port_set_io(struct spa_node *node,
|
|||
impl = this->impl;
|
||||
t = impl->t;
|
||||
|
||||
spa_log_debug(this->log, "set io %d %d %d", id, direction, impl->direction);
|
||||
if (direction != impl->direction)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -1028,6 +1029,7 @@ static const struct pw_node_events node_events = {
|
|||
* \memberof pw_client_stream
|
||||
*/
|
||||
struct pw_client_stream *pw_client_stream_new(struct pw_resource *resource,
|
||||
struct pw_global *parent,
|
||||
struct pw_properties *properties)
|
||||
{
|
||||
struct impl *impl;
|
||||
|
|
@ -1053,6 +1055,7 @@ struct pw_client_stream *pw_client_stream_new(struct pw_resource *resource,
|
|||
|
||||
impl->client_node = pw_client_node_new(
|
||||
resource,
|
||||
parent,
|
||||
pw_properties_copy(properties),
|
||||
false);
|
||||
if (impl->client_node == NULL)
|
||||
|
|
@ -1068,7 +1071,7 @@ struct pw_client_stream *pw_client_stream_new(struct pw_resource *resource,
|
|||
|
||||
this->node = pw_spa_node_new(core,
|
||||
client,
|
||||
NULL,
|
||||
parent,
|
||||
name,
|
||||
PW_SPA_NODE_FLAG_ASYNC,
|
||||
&impl->node.node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue