mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CLuaInstance: Fixes occasional problems when exiting the movie player
Reduces debug output in curl
This commit is contained in:
@@ -350,7 +350,7 @@ Example:
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (silent == false)
|
if (verbose == true)
|
||||||
printf("%s\n \n", msg.c_str());
|
printf("%s\n \n", msg.c_str());
|
||||||
|
|
||||||
lua_pushinteger(L, LUA_CURL_OK);
|
lua_pushinteger(L, LUA_CURL_OK);
|
||||||
|
@@ -35,6 +35,7 @@ class CLuaInstVideo
|
|||||||
~CLuaInstVideo() {};
|
~CLuaInstVideo() {};
|
||||||
static CLuaInstVideo* getInstance();
|
static CLuaInstVideo* getInstance();
|
||||||
static void LuaVideoRegister(lua_State *L);
|
static void LuaVideoRegister(lua_State *L);
|
||||||
|
static int channelRezap(lua_State *L);
|
||||||
|
|
||||||
/* deprecated functions */
|
/* deprecated functions */
|
||||||
static int setBlank_old(lua_State *L);
|
static int setBlank_old(lua_State *L);
|
||||||
@@ -53,7 +54,6 @@ class CLuaInstVideo
|
|||||||
static int StopPicture(lua_State *L);
|
static int StopPicture(lua_State *L);
|
||||||
static int PlayFile(lua_State *L);
|
static int PlayFile(lua_State *L);
|
||||||
static int zapitStopPlayBack(lua_State *L);
|
static int zapitStopPlayBack(lua_State *L);
|
||||||
static int channelRezap(lua_State *L);
|
|
||||||
static int createChannelIDfromUrl(lua_State *L);
|
static int createChannelIDfromUrl(lua_State *L);
|
||||||
static int getNeutrinoMode(lua_State *L);
|
static int getNeutrinoMode(lua_State *L);
|
||||||
static int setSinglePlay(lua_State *L);
|
static int setSinglePlay(lua_State *L);
|
||||||
|
@@ -50,6 +50,7 @@
|
|||||||
#include "lua_video.h"
|
#include "lua_video.h"
|
||||||
|
|
||||||
extern CPictureViewer * g_PicViewer;
|
extern CPictureViewer * g_PicViewer;
|
||||||
|
extern cVideo * videoDecoder;
|
||||||
|
|
||||||
static void set_lua_variables(lua_State *L)
|
static void set_lua_variables(lua_State *L)
|
||||||
{
|
{
|
||||||
@@ -468,7 +469,8 @@ void CLuaInstance::runScript(const char *fileName, std::vector<std::string> *arg
|
|||||||
if (CMoviePlayerGui::getInstance().getBlockedFromPlugin()) {
|
if (CMoviePlayerGui::getInstance().getBlockedFromPlugin()) {
|
||||||
CMoviePlayerGui::getInstance().setBlockedFromPlugin(false);
|
CMoviePlayerGui::getInstance().setBlockedFromPlugin(false);
|
||||||
CMoviePlayerGui::getInstance().restoreNeutrino();
|
CMoviePlayerGui::getInstance().restoreNeutrino();
|
||||||
}
|
} else if (videoDecoder->getBlank())
|
||||||
|
CLuaInstVideo::getInstance()->channelRezap(lua);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -671,6 +673,8 @@ int CLuaInstance::GCWindow(lua_State *L)
|
|||||||
CMoviePlayerGui::getInstance().setBlockedFromPlugin(false);
|
CMoviePlayerGui::getInstance().setBlockedFromPlugin(false);
|
||||||
CMoviePlayerGui::getInstance().restoreNeutrino();
|
CMoviePlayerGui::getInstance().restoreNeutrino();
|
||||||
}
|
}
|
||||||
|
else if (videoDecoder->getBlank())
|
||||||
|
CLuaInstVideo::getInstance()->channelRezap(L);
|
||||||
|
|
||||||
delete w->fbwin;
|
delete w->fbwin;
|
||||||
w->rcinput = NULL;
|
w->rcinput = NULL;
|
||||||
|
@@ -26,6 +26,7 @@ extern "C" {
|
|||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
}
|
}
|
||||||
#include <driver/fb_window.h>
|
#include <driver/fb_window.h>
|
||||||
|
#include <video_cs.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "luainstance_helpers.h"
|
#include "luainstance_helpers.h"
|
||||||
|
Reference in New Issue
Block a user