fixed timeshifttotal in displayreplay timeshift mode

This commit is contained in:
louis 2015-05-22 14:30:16 +02:00
parent ec68aeacf6
commit 2f417e4470
2 changed files with 2 additions and 1 deletions

View File

@ -338,4 +338,5 @@ Version 0.4.7
- fixed ecm time display
- provide 10 last recordings in <lastrecordings> viewelement
- fixed translation in currentelement loops
- fixed timeshifttotal in displayreplay timeshift mode

View File

@ -131,7 +131,7 @@ void cSDDisplayReplay::SetTimeShiftValues(const cRecording *recording) {
return;
double fps = recording->FramesPerSecond();
time_t liveEventStop = event->EndTime();
time_t recordingStart = recording->Start();
time_t recordingStart = time(0) - recording->LengthInSeconds();
int framesTotal = (liveEventStop - recordingStart)*fps;
int recLength = liveEventStop - recordingStart;
replayView->SetTimeShift(framesTotal, recLength);