summaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-07-17 00:58:49 +0200
committerThomas Günther <tom@toms-cafe.de>2009-07-17 01:17:52 +0200
commit56ecb9dadf63f61d227c6b8acd05dcc1da17365f (patch)
treef1ff697bceb66877e08c18b55c897f875cc3e320 /status.c
parent97c5f35c27dc65f3bc2ee9fe338f7341d65f1446 (diff)
downloadvdr-plugin-text2skin-56ecb9dadf63f61d227c6b8acd05dcc1da17365f.tar.gz
vdr-plugin-text2skin-56ecb9dadf63f61d227c6b8acd05dcc1da17365f.tar.bz2
Adapted to new recording format and variable frame rate (VDR >= 1.7.3)
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();