diff options
author | louis <louis.braun@gmx.de> | 2015-05-22 14:30:16 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-05-22 14:30:16 +0200 |
commit | 2f417e4470eedfc71ecb0a4984fcad27d19fb8f5 (patch) | |
tree | c46712578047d73bf2c68807f3e414fc32c3e4f2 | |
parent | ec68aeacf6d28e3f50409ba0a6575de981996cf9 (diff) | |
download | vdr-plugin-skindesigner-2f417e4470eedfc71ecb0a4984fcad27d19fb8f5.tar.gz vdr-plugin-skindesigner-2f417e4470eedfc71ecb0a4984fcad27d19fb8f5.tar.bz2 |
fixed timeshifttotal in displayreplay timeshift mode
-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); |