summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-06-21 03:04:34 +0200
committerThomas Günther <tom@toms-cafe.de>2009-06-21 03:04:34 +0200
commitea25399458d35ca25e3477200baa1b393a577b37 (patch)
tree93d9b12177384e6aff92adb36342f02291444473 /render.c
parentc51a331d720c7e2fb5252c6cf4c1ddd4b4b8a8a1 (diff)
downloadvdr-plugin-text2skin-ea25399458d35ca25e3477200baa1b393a577b37.tar.gz
vdr-plugin-text2skin-ea25399458d35ca25e3477200baa1b393a577b37.tar.bz2
Removed backward compatibility to VDR < 1.6.0 (closes #137)
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/render.c b/render.c
index 65b0ce7..80a83a2 100644
--- a/render.c
+++ b/render.c
@@ -131,7 +131,7 @@ cText2SkinRender::~cText2SkinRender()
void cText2SkinRender::Action(void)
{
bool to = true;
- uint start_time = time_ms();
+ uint start_time = cTimeMs::Now();
mActive = true;
UpdateLock();
mStarted.Broadcast();
@@ -143,7 +143,7 @@ void cText2SkinRender::Action(void)
else mDoUpdate.Wait(mDoUpdateMutex);
if (!mActive) break; // fall out if thread to be stopped
- mNow = time_ms();
+ mNow = cTimeMs::Now();
if (mUpdateIn) {
if (!to || mNow >= start_time + mUpdateIn) {
@@ -843,7 +843,6 @@ cxType cText2SkinRender::GetTokenData(const txToken &Token)
case tOsdHeight: return (cxType)mBaseSize.h;
-#if VDRVERSNUM >=10318
case tAudioTrack: {
cDevice *dev = cDevice::PrimaryDevice();
const tTrackId *Track = dev->GetTrack(dev->GetCurrentAudioTrack());
@@ -854,7 +853,6 @@ cxType cText2SkinRender::GetTokenData(const txToken &Token)
case tAudioChannel:
return cText2SkinDisplayTracks::ChannelName(cDevice::PrimaryDevice()->GetAudioChannel());
-#endif
default: return Text2SkinStatus.GetTokenData(Token);
}