mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
movieplayer.cpp: avoid possible unused parameter warning
This commit is contained in:
@@ -1026,12 +1026,13 @@ bool CMoviePlayerGui::luaGetUrl(const std::string &script, const std::string &fi
|
||||
|
||||
std::string result_code = "";
|
||||
std::string result_string = "";
|
||||
std::string lua_script = script;
|
||||
|
||||
std::vector<std::string> args;
|
||||
args.push_back(file);
|
||||
#ifdef ENABLE_LUA
|
||||
CLuaInstance *lua = new CLuaInstance();
|
||||
lua->runScript(script.c_str(), &args, &result_code, &result_string);
|
||||
lua->runScript(lua_script.c_str(), &args, &result_code, &result_string);
|
||||
delete lua;
|
||||
#endif
|
||||
if ((result_code != "0") || result_string.empty()) {
|
||||
|
Reference in New Issue
Block a user