mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa-node: always set clock.quantum-limit property
Set the clock.quantum-limit property on the node also when it was created without properties. Fixes clock.quantum-limit on the Midi-Bridge. See #4005
This commit is contained in:
parent
d5298eee2c
commit
32956efbf7
1 changed files with 4 additions and 5 deletions
|
|
@ -243,15 +243,14 @@ struct pw_impl_node *pw_spa_node_load(struct pw_context *context,
|
|||
struct pw_loop *loop;
|
||||
struct match match;
|
||||
|
||||
if (properties) {
|
||||
p = pw_context_get_properties(context);
|
||||
pw_properties_set(properties, "clock.quantum-limit",
|
||||
pw_properties_get(p, "default.clock.quantum-limit"));
|
||||
} else {
|
||||
if (properties == NULL) {
|
||||
properties = pw_properties_new(NULL, NULL);
|
||||
if (properties == NULL)
|
||||
return NULL;
|
||||
}
|
||||
p = pw_context_get_properties(context);
|
||||
pw_properties_set(properties, "clock.quantum-limit",
|
||||
pw_properties_get(p, "default.clock.quantum-limit"));
|
||||
|
||||
match = MATCH_INIT(properties);
|
||||
pw_context_conf_section_match_rules(context, "node.rules",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue