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

This reverts commit 8b95905797.


Origin commit data
------------------
Commit: d32abdc368
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-06-28 (Fri, 28 Jun 2019)
This commit is contained in:
vanhofen
2019-06-28 23:07:05 +02:00
parent 2bd732830f
commit 1afcc19833

View File

@@ -82,10 +82,6 @@ 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);