movieplayer.cpp: avoid possible unused parameter warning

This commit is contained in:
2021-06-30 19:40:42 +02:00
parent 9621bc4a98
commit 4bb62380fe

View File

@@ -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()) {