mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
* Neutrino optimized shutdown
- Display the screen to complete shutdown of the box. - Saving EPG extending the timeout to 120 seconds. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2140 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -2969,6 +2969,9 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
||||
standby.timer_minutes_hi = fp_timer >> 8;;
|
||||
standby.timer_minutes_lo = fp_timer & 0xFF;
|
||||
|
||||
delete videoDecoder;
|
||||
cs_api_exit();
|
||||
|
||||
int fd = open("/dev/display", O_RDONLY);
|
||||
if (fd < 0) {
|
||||
perror("/dev/display");
|
||||
@@ -3057,7 +3060,7 @@ void CNeutrinoApp::saveEpg()
|
||||
neutrino_msg_data_t data;
|
||||
g_Sectionsd->writeSI2XML(g_settings.epg_dir.c_str());
|
||||
while( true ) {
|
||||
g_RCInput->getMsg(&msg, &data, 300); // 30 secs..
|
||||
g_RCInput->getMsg(&msg, &data, 1200); // 120 secs..
|
||||
if (( msg == CRCInput::RC_timeout ) || (msg == NeutrinoMessages::EVT_SI_FINISHED)) {
|
||||
//printf("Msg %x timeout %d EVT_SI_FINISHED %x\n", msg, CRCInput::RC_timeout, NeutrinoMessages::EVT_SI_FINISHED);
|
||||
break;
|
||||
@@ -3729,7 +3732,6 @@ void stop_daemons(bool stopall)
|
||||
delete powerManager;
|
||||
}
|
||||
cs_deregister_messenger();
|
||||
cs_api_exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user