mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CLuaInstance::setBlank: Fix parameter
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7398b43276
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-12 (Fri, 12 Sep 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -645,9 +645,11 @@ extern cVideo * videoDecoder;
|
||||
|
||||
int CLuaInstance::setBlank(lua_State *L)
|
||||
{
|
||||
int enable = 1;
|
||||
enable = luaL_checkint(L, 2);
|
||||
videoDecoder->setBlank((enable==1)?true:false);
|
||||
bool enable = true;
|
||||
int numargs = lua_gettop(L);
|
||||
if (numargs > 1)
|
||||
enable = _luaL_checkbool(L, 2);
|
||||
videoDecoder->setBlank(enable);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user