diff options
| -rw-r--r-- | HISTORY | 1 | ||||
| -rw-r--r-- | displayreplay.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 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); |
