mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-11 07:18:06 +02:00
simple-policy: fix bug when finding endpoints
This commit is contained in:
parent
755f0bd862
commit
efbefe9e0e
1 changed files with 1 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ simple_policy_find_endpoint (WpPolicy *policy, GVariant *props,
|
|||
}
|
||||
|
||||
/* If not found, return the first endpoint */
|
||||
ep = (ptr_array->len > 1) ?
|
||||
ep = (ptr_array->len > 0) ?
|
||||
g_object_ref (g_ptr_array_index (ptr_array, 0)) : NULL;
|
||||
|
||||
select_stream:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue