mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa-ctl: filter for and use only the "default" metadata object
Fixes #1384
This commit is contained in:
parent
43e4625bbe
commit
df8bd85277
1 changed files with 4 additions and 0 deletions
|
|
@ -1100,6 +1100,10 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
pw_log_debug("found node %d type:%s", id, str);
|
||||
info = &node_info;
|
||||
} else if (spa_streq(type, PW_TYPE_INTERFACE_Metadata)) {
|
||||
if (props == NULL ||
|
||||
((str = spa_dict_lookup(props, PW_KEY_METADATA_NAME)) == NULL) ||
|
||||
(!spa_streq(str, "default")))
|
||||
return;
|
||||
if (ctl->metadata != NULL)
|
||||
return;
|
||||
info = &metadata_info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue