diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2010-11-14 13:51:14 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2010-11-14 13:51:14 +0100 |
commit | c97517dfd803ab7132412725e91241fcca36cbe0 (patch) | |
tree | 55d96a5205406505d82ce2b40868186f1cf34840 /state.c | |
parent | 97aa570b797460a599696cc22801e968015a5be4 (diff) | |
download | vdr-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; |