From d9fc912c1108a1d3f07d96e9d89b64410d5963a8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 5 Aug 2024 18:41:18 +0200 Subject: [PATCH] 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 --- src/modules/spa/spa-node.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modules/spa/spa-node.c b/src/modules/spa/spa-node.c index 8f5749271..a72058950 100644 --- a/src/modules/spa/spa-node.c +++ b/src/modules/spa/spa-node.c @@ -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",