some compil warning fixes

This commit is contained in:
Jacek Jendrzej
2016-04-23 21:19:04 +02:00
parent 8638cd73b7
commit a471b2af10
4 changed files with 8 additions and 6 deletions

View File

@@ -152,7 +152,8 @@ int CLuaInstVideo::PlayFile(lua_State *L)
bool sp = false;
if (luaL_testudata(L, 1, LUA_CLASSNAME) == NULL)
sp = D->singlePlay;
if (D)
sp = D->singlePlay;
if ((sp == false) && (CMoviePlayerGui::getInstance().getBlockedFromPlugin() == false))
CMoviePlayerGui::getInstance().setBlockedFromPlugin(true);