mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-14 08:56:37 -05:00
jack: avoid metadata updates to monitor nodes
Because there is no difference in the node id of the monitor and the sink carla has problems. See #1945
This commit is contained in:
parent
1f4d3b0a1b
commit
4c0bba953a
2 changed files with 10 additions and 5 deletions
|
|
@ -196,10 +196,12 @@ static int update_property(struct client *c,
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&globals.lock);
|
pthread_mutex_unlock(&globals.lock);
|
||||||
|
|
||||||
if (c->property_callback && changed)
|
if (c->property_callback && changed) {
|
||||||
|
pw_log_info("emit %lu %s", subject, key);
|
||||||
c->property_callback(subject, key, change, c->property_arg);
|
c->property_callback(subject, key, change, c->property_arg);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -222,14 +224,17 @@ int jack_set_property(jack_client_t*client,
|
||||||
if (c->metadata == NULL)
|
if (c->metadata == NULL)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
if (subject & (1<<30))
|
||||||
|
goto done;
|
||||||
|
|
||||||
id = jack_uuid_to_index(subject);
|
id = jack_uuid_to_index(subject);
|
||||||
|
|
||||||
if (type == NULL)
|
if (type == NULL)
|
||||||
type = "";
|
type = "";
|
||||||
|
|
||||||
pw_log_info("set id:%u (%"PRIu64") '%s' to '%s@%s'", id, subject, key, value, type);
|
pw_log_info("set id:%u (%"PRIu64") '%s' to '%s@%s'", id, subject, key, value, type);
|
||||||
update_property(c, id, key, type, value);
|
if (update_property(c, subject, key, type, value))
|
||||||
pw_metadata_set_property(c->metadata->proxy, id, key, type, value);
|
pw_metadata_set_property(c->metadata->proxy, id, key, type, value);
|
||||||
res = 0;
|
res = 0;
|
||||||
done:
|
done:
|
||||||
pw_thread_loop_unlock(c->context.loop);
|
pw_thread_loop_unlock(c->context.loop);
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ jack_uuid_t jack_port_uuid_generate (uint32_t port_id)
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
uint32_t jack_uuid_to_index (jack_uuid_t id)
|
uint32_t jack_uuid_to_index (jack_uuid_t id)
|
||||||
{
|
{
|
||||||
return (id & 0xffffffff) - 1;
|
return (id & 0xffffff) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue