mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
jack: fix port check
We need to actually use the port object to check if it's ours.
This commit is contained in:
parent
512e4e4b83
commit
7cf0afe299
1 changed files with 4 additions and 4 deletions
|
|
@ -2765,8 +2765,8 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
if ((p = find_type(c, o->port_link.src, INTERFACE_Port, true)) == NULL)
|
if ((p = find_type(c, o->port_link.src, INTERFACE_Port, true)) == NULL)
|
||||||
goto exit_free;
|
goto exit_free;
|
||||||
|
|
||||||
o->port_link.src_ours = o->port.port != NULL &&
|
o->port_link.src_ours = p->port.port != NULL &&
|
||||||
o->port.port->client == c;
|
p->port.port->client == c;
|
||||||
|
|
||||||
if ((str = spa_dict_lookup(props, PW_KEY_LINK_INPUT_PORT)) == NULL)
|
if ((str = spa_dict_lookup(props, PW_KEY_LINK_INPUT_PORT)) == NULL)
|
||||||
goto exit_free;
|
goto exit_free;
|
||||||
|
|
@ -2775,8 +2775,8 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
if ((p = find_type(c, o->port_link.dst, INTERFACE_Port, true)) == NULL)
|
if ((p = find_type(c, o->port_link.dst, INTERFACE_Port, true)) == NULL)
|
||||||
goto exit_free;
|
goto exit_free;
|
||||||
|
|
||||||
o->port_link.dst_ours = o->port.port != NULL &&
|
o->port_link.dst_ours = p->port.port != NULL &&
|
||||||
o->port.port->client == c;
|
p->port.port->client == c;
|
||||||
|
|
||||||
o->port_link.is_complete = !o->port_link.src_ours && !o->port_link.dst_ours;
|
o->port_link.is_complete = !o->port_link.src_ours && !o->port_link.dst_ours;
|
||||||
pw_log_debug(NAME" %p: add link %d %d->%d", c, id,
|
pw_log_debug(NAME" %p: add link %d %d->%d", c, id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue