mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed timeshifttotal in displayreplay timeshift mode
This commit is contained in:
parent
ec68aeacf6
commit
2f417e4470
1
HISTORY
1
HISTORY
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user