init pre post

Origin commit data
------------------
Commit: 4bdacf39c8
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-06-26 (Mon, 26 Jun 2017)
This commit is contained in:
Jacek Jendrzej
2017-06-26 19:23:23 +02:00
parent d6b7d95600
commit 0e522bb6e6
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;