lua: don't play video if movieplayer is in use

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5e33a6381c
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-09 (Sun, 09 Jun 2019)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2019-06-09 17:21:18 +02:00
committed by vanhofen
parent d5c9bce92d
commit f4ba72cb53

View File

@@ -82,6 +82,10 @@ void CLuaInstVideo::LuaVideoRegister(lua_State *L)
int CLuaInstVideo::VideoNew(lua_State *L)
{
if(CMoviePlayerGui::getInstance().Playing()){
fprintf(stderr, "[CLuaInstVideo::%s:%d] movieplayer is blocked by other file\n", __func__, __LINE__);
return 0;
}
CLuaVideo **udata = (CLuaVideo **) lua_newuserdata(L, sizeof(CLuaVideo *));
*udata = new CLuaVideo();
luaL_getmetatable(L, LUA_VIDEO_CLASSNAME);