mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 06:58:08 +02:00
Fix not-equals verb having the wrong number of arguments in Lua API
This commit is contained in:
parent
9ebea2976d
commit
86bfdbea13
2 changed files with 2 additions and 1 deletions
|
|
@ -511,6 +511,7 @@ object_interest_new_add_constraint (lua_State *L, GType type,
|
|||
|
||||
switch (verb) {
|
||||
case WP_CONSTRAINT_VERB_EQUALS:
|
||||
case WP_CONSTRAINT_VERB_NOT_EQUALS:
|
||||
case WP_CONSTRAINT_VERB_MATCHES: {
|
||||
lua_geti (L, constraint_idx, 3);
|
||||
value = constraint_value_to_variant (L, -1);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ local function Constraint (spec)
|
|||
end
|
||||
|
||||
-- check if we got the right amount of values
|
||||
if verb == "=" or verb == "#" then
|
||||
if verb == "=" or verb == "!" or verb == "#" then
|
||||
assert (spec[3] ~= nil,
|
||||
"Constraint: " .. verbs[verb] .. ": expected constraint value")
|
||||
elseif verb == "c" then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue