diff options
author | Andreas Brugger <brougs78@gmx.net> | 2005-12-11 12:00:00 +0100 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-06-03 01:10:21 +0200 |
commit | bb39010021b5fd8a1046200839c678afc76227d5 (patch) | |
tree | 81c27dc44e9c40512514334030ce7309c48efaa2 /status.c | |
parent | 662dd62488f6f842fe5d940e986f798abe1c7691 (diff) | |
download | vdr-plugin-text2skin-bb39010021b5fd8a1046200839c678afc76227d5.tar.gz vdr-plugin-text2skin-bb39010021b5fd8a1046200839c678afc76227d5.tar.bz2 |
2005-12-11: Version 1.1-cvs_ext-0.3 (vdr-text2skin-1.1-cvs_ext-0.3.diff)
- added recording-tokens:
RecordingLength, RecordingCuttedLength
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -7,6 +7,7 @@ #include "menu.h" #include <vdr/timers.h> #include <vdr/plugin.h> +#include <vdr/menu.h> const std::string ReplayNames[__REPLAY_COUNT__] = { "", "normal", "mp3", "mplayer", "dvd", "vcd", "image" }; @@ -53,11 +54,11 @@ void cText2SkinStatus::Replaying(const cControl* /*Control*/, const char *Name) mReplayIsShuffle = Name[2] == 'S'; } } - else if (const cRecording *rec = GetRecordingByName(Name)) - { - mReplay = rec; - mReplayMode = replayNormal; - } + else if (const cRecording *rec = GetRecordingByFileName(cReplayControl::LastReplayed())) + { + mReplay = rec; + mReplayMode = replayNormal; + } else if (strcmp(Name, "DVD") == 0) mReplayMode = replayDVD; else if (strcmp(Name, "VCD") == 0) @@ -308,7 +309,13 @@ cxType cText2SkinStatus::GetTokenData(const txToken &Token) { const tComponent *c = components->Component(i); if (c->stream != 2) index++; // only audio-streams - if (i == index) return (cxType)c->language; + { + std::string buffer(c->language); + if (c->type == 1) buffer.append("MONO"); + if (c->type == 2) buffer.append("DUAL"); + if (c->type == 5) buffer.append("DD"); + return (cxType)buffer.c_str(); + } } } } |