diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index cde2ad22a..122a999c2 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -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 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()) {