diff --git a/src/gui/lua/lua_video.cpp b/src/gui/lua/lua_video.cpp index 3a3291b8e..d41887477 100644 --- a/src/gui/lua/lua_video.cpp +++ b/src/gui/lua/lua_video.cpp @@ -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);