mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
[timers] fix start timers
Origin commit data
------------------
Branch: ni/coolstream
Commit: de6f90ac27
Author: TangoCash <eric@loxat.de>
Date: 2016-11-19 (Sat, 19 Nov 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1216,7 +1216,7 @@ CTimerEvent_Record::CTimerEvent_Record(CConfigFile *config, int iId):
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::fireEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
if ((adjustToCurrentEPG()) && (alarmTime > time(NULL)))
|
||||
return;
|
||||
getEpgId();
|
||||
CTimerd::RecordingInfo ri=eventInfo;
|
||||
@@ -1232,7 +1232,7 @@ void CTimerEvent_Record::fireEvent()
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::announceEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
if ((adjustToCurrentEPG()) && (announceTime > time(NULL)))
|
||||
return;
|
||||
Refresh();
|
||||
CTimerd::RecordingInfo ri=eventInfo;
|
||||
@@ -1368,9 +1368,11 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
_stopTime += post;
|
||||
}
|
||||
|
||||
if ((_alarmTime != alarmTime) || (_announceTime != announceTime) || (_stopTime != stopTime))
|
||||
if ((_alarmTime != alarmTime) || (_announceTime != announceTime) || (_stopTime != stopTime)) {
|
||||
alarmTime = _alarmTime; announceTime = _announceTime; stopTime = _stopTime;
|
||||
if (CTimerManager::getInstance()->adjustEvent(eventID, _announceTime, _alarmTime, _stopTime))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user