mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
1c0788a04c
commit
d9fc912c11
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 pw_loop *loop;
|
||||||
struct match match;
|
struct match match;
|
||||||
|
|
||||||
if (properties) {
|
if (properties == NULL) {
|
||||||
p = pw_context_get_properties(context);
|
|
||||||
pw_properties_set(properties, "clock.quantum-limit",
|
|
||||||
pw_properties_get(p, "default.clock.quantum-limit"));
|
|
||||||
} else {
|
|
||||||
properties = pw_properties_new(NULL, NULL);
|
properties = pw_properties_new(NULL, NULL);
|
||||||
if (properties == NULL)
|
if (properties == NULL)
|
||||||
return 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);
|
match = MATCH_INIT(properties);
|
||||||
pw_context_conf_section_match_rules(context, "node.rules",
|
pw_context_conf_section_match_rules(context, "node.rules",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue