mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
lua: fix broken error message
luaL_error() doesn't support %.*s, because it uses Lua's own format string mechanism that just looks like the C one. Just drop this part.
This commit is contained in:
parent
c65bce0738
commit
29bc781b68
@ -1043,7 +1043,7 @@ static int script_input_enable_section(lua_State *L)
|
||||
} else if (bstr_equals0(val, "exclusive")) {
|
||||
flags |= MP_INPUT_EXCLUSIVE;
|
||||
} else {
|
||||
luaL_error(L, "invalid flag: '%.*s'", BSTR_P(val));
|
||||
luaL_error(L, "invalid flag");
|
||||
}
|
||||
}
|
||||
mp_input_enable_section(mpctx->input, section, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user