mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
jack: use properties instead of parent_id
This commit is contained in:
parent
2d6f9950a5
commit
a560e8b92f
1 changed files with 7 additions and 1 deletions
|
|
@ -1455,7 +1455,7 @@ static const char* type_to_string(jack_port_type_id_t type_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void registry_event_global(void *data, uint32_t id, uint32_t parent_id,
|
static void registry_event_global(void *data, uint32_t id,
|
||||||
uint32_t permissions, uint32_t type, uint32_t version,
|
uint32_t permissions, uint32_t type, uint32_t version,
|
||||||
const struct spa_dict *props)
|
const struct spa_dict *props)
|
||||||
{
|
{
|
||||||
|
|
@ -1463,6 +1463,7 @@ static void registry_event_global(void *data, uint32_t id, uint32_t parent_id,
|
||||||
struct object *o, *ot;
|
struct object *o, *ot;
|
||||||
const char *str;
|
const char *str;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
uint32_t parent_id = 0;
|
||||||
|
|
||||||
if (props == NULL)
|
if (props == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
@ -1496,6 +1497,11 @@ static void registry_event_global(void *data, uint32_t id, uint32_t parent_id,
|
||||||
if ((type_id = string_to_type(str)) == SPA_ID_INVALID)
|
if ((type_id = string_to_type(str)) == SPA_ID_INVALID)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
if ((str = spa_dict_lookup(props, PW_KEY_NODE_ID)) == NULL)
|
||||||
|
goto exit;
|
||||||
|
|
||||||
|
parent_id = atoi(str);
|
||||||
|
|
||||||
if ((str = spa_dict_lookup(props, PW_KEY_PORT_NAME)) == NULL)
|
if ((str = spa_dict_lookup(props, PW_KEY_PORT_NAME)) == NULL)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue