init pre post

This commit is contained in:
Jacek Jendrzej
2017-06-26 19:23:23 +02:00
parent 7aec84d124
commit 4bdacf39c8
4 changed files with 4 additions and 4 deletions

View File

@@ -306,7 +306,7 @@ bool timerd_parse_command(CBasicMessage::Header &rmsg, int connfd)
CBasicServer::receive_data(connfd, &recInfo, sizeof(CTimerd::TransferRecordingInfo));
if(recInfo.recordingSafety)
{
int pre,post;
int pre = 0,post = 0;
CTimerManager::getInstance()->getRecordingSafety(pre,post);
msgAddTimer.announceTime -= pre;
msgAddTimer.alarmTime -= pre;

View File

@@ -1347,7 +1347,7 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
CChannelEventList evtlist;
CEitManager::getInstance()->getEventsServiceKey(eventInfo.channel_id, evtlist);
int pre, post;
int pre = 0, post = 0;
CTimerManager::getInstance()->getRecordingSafety(pre, post);
time_t _announceTime = announceTime;