diff options
author | Thomas Günther <tom@toms-cafe.de> | 2009-07-17 00:58:49 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-07-17 01:17:52 +0200 |
commit | 56ecb9dadf63f61d227c6b8acd05dcc1da17365f (patch) | |
tree | f1ff697bceb66877e08c18b55c897f875cc3e320 /status.c | |
parent | 97c5f35c27dc65f3bc2ee9fe338f7341d65f1446 (diff) | |
download | vdr-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.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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(); |