mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 06:38:01 +02:00
filter-utils: fix indexing nil value
Check target is not nil, which sometimes occurs, before trying to access its .id property. Fixes lua errors in logs.
This commit is contained in:
parent
c6e3dbf887
commit
6d9205cfe0
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ function module.get_filter_from_target (direction, si_target)
|
|||
if v.direction == direction and
|
||||
not v.disabled and
|
||||
v.smart and
|
||||
((v.target ~= nil and v.target.id == target.id) or
|
||||
((v.target ~= nil and target ~= nil and v.target.id == target.id) or
|
||||
(target == nil and v.target == nil)) then
|
||||
return v.main_si
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue