summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-02 19:33:19 +0100
committerwm4 <wm4@nowhere>2014-12-02 20:36:55 +0100
commit29bc781b685bf9fa0439c1c3c69eed34c474e363 (patch)
tree272371e6c183ac465b08a73cfe367194fdd3fd2f
parentc65bce07386df8cee1e5c7a84cc8eb615b65663e (diff)
downloadmpv-29bc781b685bf9fa0439c1c3c69eed34c474e363.tar.bz2
mpv-29bc781b685bf9fa0439c1c3c69eed34c474e363.tar.xz
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.
-rw-r--r--player/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c
index d2990c3b28..7f7fb69bce 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -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);