mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
jack: improve _is_mine() check
Also check the client, in case someone uses a port from another client.
This commit is contained in:
parent
3dde9fef9c
commit
a559b96d61
|
@ -4219,7 +4219,9 @@ int jack_port_is_mine (const jack_client_t *client, const jack_port_t *port)
|
|||
{
|
||||
struct object *o = (struct object *) port;
|
||||
spa_return_val_if_fail(o != NULL, 0);
|
||||
return o->type == INTERFACE_Port && o->port.port_id != SPA_ID_INVALID;
|
||||
return o->type == INTERFACE_Port &&
|
||||
o->port.port != NULL &&
|
||||
o->port.port->client == (struct client*)client;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
|
|
Loading…
Reference in a new issue