mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
media-session: only check passthrough when available
When none of the nodes have a valid passthrough format, don't check if passthrough is possible. Without the check, it is possible that a node has a common format with the peer that is not a passthrough format, like a raw audio format. Fixes #1587
This commit is contained in:
parent
954befccff
commit
67be26aac7
1 changed files with 3 additions and 0 deletions
|
|
@ -217,6 +217,9 @@ static bool check_passthrough(struct node *node, struct node *peer)
|
|||
if (peer->obj->info->state == PW_NODE_STATE_RUNNING)
|
||||
return false;
|
||||
|
||||
if (!node->have_passthrough || !peer->have_passthrough)
|
||||
return false;
|
||||
|
||||
spa_list_for_each(p1, &node->obj->param_list, link) {
|
||||
if (p1->id != SPA_PARAM_EnumFormat)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue