diff --git a/HISTORY b/HISTORY index aaaa838..4a40719 100644 --- a/HISTORY +++ b/HISTORY @@ -338,4 +338,5 @@ Version 0.4.7 - fixed ecm time display - provide 10 last recordings in viewelement - fixed translation in currentelement loops +- fixed timeshifttotal in displayreplay timeshift mode diff --git a/displayreplay.c b/displayreplay.c index 7ae5e69..130f0e4 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -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);