CLuaInstance::setBlank: Fix parameter

This commit is contained in:
M. Liebmann
2014-09-12 19:17:52 +02:00
parent 58198b3f55
commit 7398b43276

View File

@@ -645,9 +645,11 @@ extern cVideo * videoDecoder;
int CLuaInstance::setBlank(lua_State *L) int CLuaInstance::setBlank(lua_State *L)
{ {
int enable = 1; bool enable = true;
enable = luaL_checkint(L, 2); int numargs = lua_gettop(L);
videoDecoder->setBlank((enable==1)?true:false); if (numargs > 1)
enable = _luaL_checkbool(L, 2);
videoDecoder->setBlank(enable);
return 0; return 0;
} }