From ab898f8ae62c156969aca248d986ee5529912e38 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 10 Aug 2022 09:52:20 +0200 Subject: [PATCH] jack: use context properties for rules For a JACK client, the context and node is the same. It makes sense to also run the rules on the context properties so that application name etc. can be matched as well. Fixes #2580 --- pipewire-jack/src/pipewire-jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 7919c2c6a..4fdfbbeaa 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -3282,7 +3282,7 @@ jack_client_t * jack_client_open (const char *client_name, "jack.properties", client->props); pw_context_conf_section_match_rules(client->context.context, "jack.rules", - &client->props->dict, execute_match, client); + &client->context.context->properties->dict, execute_match, client); support = pw_context_get_support(client->context.context, &n_support);