diff --git a/src/global.h b/src/global.h index 5179fe1b3..8dc9b30c1 100644 --- a/src/global.h +++ b/src/global.h @@ -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" diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 574abc2cc..582dd99fe 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -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(); @@ -366,6 +371,10 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) frameBuffer->useBackground(true); 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); diff --git a/src/neutrino.cpp b/src/neutrino.cpp index c6e847ec7..d22a01be7 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -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;