summaryrefslogtreecommitdiff
path: root/state.c
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2010-11-14 13:51:14 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2010-11-14 13:51:14 +0100
commitc97517dfd803ab7132412725e91241fcca36cbe0 (patch)
tree55d96a5205406505d82ce2b40868186f1cf34840 /state.c
parent97aa570b797460a599696cc22801e968015a5be4 (diff)
downloadvdr-plugin-graphlcd-c97517dfd803ab7132412725e91241fcca36cbe0.tar.gz
vdr-plugin-graphlcd-c97517dfd803ab7132412725e91241fcca36cbe0.tar.bz2
wrong recordinglength with vdr-1.7.x
see http://projects.vdr-developer.org/issues/443 & http://www.vdrportal.de/board/thread.php?postid=955543#post955543
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;