mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: make sure jack clients are ALWAYS_PROCESS
We need this flag to be true otherwise, we will try to hide ports from JACK clients that suspend (while still active). See #3416
This commit is contained in:
parent
1ad0ea3e56
commit
f0304f45a9
1 changed files with 8 additions and 0 deletions
|
|
@ -3258,6 +3258,14 @@ static void node_info(void *data, const struct pw_node_info *info)
|
|||
struct client *c = n->client;
|
||||
bool active;
|
||||
|
||||
if (info->change_mask & PW_NODE_CHANGE_MASK_PROPS) {
|
||||
/* JACK clients always need ALWAYS_PROCESS=true or else they don't
|
||||
* conform to the JACK API. We would try to hide the ports of
|
||||
* PAUSED JACK clients, for example, even if they are active. */
|
||||
const char *str = spa_dict_lookup(info->props, PW_KEY_NODE_ALWAYS_PROCESS);
|
||||
n->node.is_jack = str ? spa_atob(str) : false;
|
||||
}
|
||||
|
||||
n->node.is_running = info->state == PW_NODE_STATE_RUNNING;
|
||||
active = node_is_active(c, n);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue