lua api: fix broken build with --disable-lua

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1d74379981
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-02 (Sun, 02 Oct 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-10-02 22:52:10 +02:00
parent 5d744ba0f1
commit 715968ee52
9 changed files with 20 additions and 6 deletions

View File

@@ -753,11 +753,11 @@ bool CMoviePlayerGui::luaGetUrl(const std::string &script, const std::string &fi
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);
delete lua;
#endif
if ((result_code != "0") || result_string.empty()) {
if (box != NULL) {
box->hide();
@@ -2157,7 +2157,9 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
yres = 1080;
aspectRatio = videoDecoder->getAspectRatio();
}
#ifdef ENABLE_LUA
CLuaInstVideo::getInstance()->execLuaInfoFunc(luaState, xres, yres, aspectRatio, framerate);
#endif
}
else if (p_movie_info)
g_EpgData->show_mp(p_movie_info, position, duration);