add movieplayer.start & movieplayer.end script (untested)

- small cleanup

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1453 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: f06962d6c4
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-05-10 (Tue, 10 May 2011)

Origin message was:
------------------
- add movieplayer.start & movieplayer.end script (untested)
- small cleanup

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1453 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2011-05-10 15:27:56 +00:00
parent d58323eca5
commit 3ea784f312
3 changed files with 11 additions and 14 deletions

View File

@@ -68,6 +68,8 @@
#define NEUTRINO_RECORDING_ENDED_SCRIPT CONFIGDIR "/recording.end"
#define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.on"
#define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.off"
#define MOVIEPLAYER_START_SCRIPT CONFIGDIR "/movieplayer.start"
#define MOVIEPLAYER_END_SCRIPT CONFIGDIR "/movieplayer.end"
#define NEUTRINO_SCAN_SETTINGS_FILE CONFIGDIR "/scan.conf"
#define NEUTRINO_PARENTALLOCKED_FILE DATADIR "/neutrino/.plocked"

View File

@@ -302,6 +302,11 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
isMovieBrowser = false;
minuteoffset = MINUTEOFFSET;
secondoffset = minuteoffset / 60;
puts("[movieplayer.cpp] executing " MOVIEPLAYER_START_SCRIPT ".");
if (system(MOVIEPLAYER_START_SCRIPT) != 0)
perror(MOVIEPLAYER_START_SCRIPT " failed");
#if 0
if (actionKey == "fileplayback") {
cutNeutrino();
@@ -367,6 +372,10 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
frameBuffer->paintBackground();
}
puts("[movieplayer.cpp] executing " MOVIEPLAYER_END_SCRIPT ".");
if (system(MOVIEPLAYER_END_SCRIPT) != 0)
perror(MOVIEPLAYER_END_SCRIPT " failed");
restoreNeutrino();
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
//g_RCInput->postMsg(NeutrinoMessages::SHOW_INFOBAR, 0);

View File

@@ -257,20 +257,6 @@ CZapitClient::SatelliteList satList;
CVCRControl::CDevice * recordingdevice = NULL;
#if 0
#define NEUTRINO_SETTINGS_FILE CONFIGDIR "/neutrino.conf"
#define NEUTRINO_RECORDING_TIMER_SCRIPT CONFIGDIR "/recording.timer"
#define NEUTRINO_RECORDING_START_SCRIPT CONFIGDIR "/recording.start"
#define NEUTRINO_RECORDING_ENDED_SCRIPT CONFIGDIR "/recording.end"
#define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.on"
#define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.off"
#define NEUTRINO_SCAN_SETTINGS_FILE CONFIGDIR "/scan.conf"
#define NEUTRINO_PARENTALLOCKED_FILE DATADIR "/neutrino/.plocked"
#define NEUTRINO_SCAN_START_SCRIPT CONFIGDIR "/recording.start"
#endif
static void initGlobals(void)
{
g_fontRenderer = NULL;