summaryrefslogtreecommitdiff
path: root/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'state.c')
-rw-r--r--state.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/state.c b/state.c
index 34446a3..6f29e9d 100644
--- a/state.c
+++ b/state.c
@@ -42,8 +42,10 @@ cGraphLCDState::cGraphLCDState(cGraphLCDDisplay * Display)
replay.current = 0;
#if VDRVERSNUM >= 10701
replay.currentLast = DEFAULTFRAMESPERSECOND;
+ replay.framesPerSecond = DEFAULTFRAMESPERSECOND;
#else
replay.currentLast = FRAMESPERSEC;
+ replay.framesPerSecond = FRAMESPERSEC;
#endif
replay.total = 0;
replay.totalLast = 1;
@@ -768,6 +770,11 @@ tReplayState cGraphLCDState::GetReplayState()
{
if (replay.control)
{
+#if VDRVERSNUM >= 10701
+ replay.framesPerSecond = replay.control->FramesPerSecond();
+#else
+ replay.framesPerSecond = FRAMESPERSEC;
+#endif
ret = replay;
replay.currentLast = replay.current;
replay.totalLast = replay.total;
@@ -781,6 +788,11 @@ tReplayState cGraphLCDState::GetReplayState()
{
if (replay.control)
{
+#if VDRVERSNUM >= 10701
+ replay.framesPerSecond = replay.control->FramesPerSecond();
+#else
+ replay.framesPerSecond = FRAMESPERSEC;
+#endif
if (replay.control->GetIndex(replay.current, replay.total, false))
{
replay.total = (replay.total == 0) ? 1 : replay.total;