From 56ecb9dadf63f61d227c6b8acd05dcc1da17365f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Fri, 17 Jul 2009 00:58:49 +0200 Subject: Adapted to new recording format and variable frame rate (VDR >= 1.7.3) --- status.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'status.c') 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(); -- cgit v1.2.3