summaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'status.c')
-rw-r--r--status.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/status.c b/status.c
index 25dae2d..442eb30 100644
--- a/status.c
+++ b/status.c
@@ -22,7 +22,8 @@ cText2SkinStatus::cText2SkinStatus(void):
mRecordings(),
mCurrentRecording(0),
mNextRecording(0),
- mLastLanguage(0)
+ mLastLanguage(0),
+ mReplayFramesPerSecond(0)
{
}
@@ -84,6 +85,13 @@ void cText2SkinStatus::Replaying(const cControl* /*Control*/, const char *Name,
mReplayIsShuffle = false;
}
+#if VDRVERSNUM >= 10703
+ // Workaround: Control->FramesPerSecond() not possible because its not const
+ mReplayFramesPerSecond = mReplay != NULL ? mReplay->FramesPerSecond() : DEFAULTFRAMESPERSECOND;
+#else
+ mReplayFramesPerSecond = FRAMESPERSEC;
+#endif
+
if (mRender != NULL) {
if (mReplayMode != oldMode)
mRender->SetDirty();