diff options
author | Andreas Brugger <brougs78@gmx.net> | 2005-12-18 12:00:00 +0100 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-06-03 01:18:35 +0200 |
commit | eeda27b9d069161db0261f6e2f51ac9463bde910 (patch) | |
tree | 13168858991dfcfc13c8ac373fc8c9ca6a5db264 /status.c | |
parent | bb39010021b5fd8a1046200839c678afc76227d5 (diff) | |
download | vdr-plugin-text2skin-eeda27b9d069161db0261f6e2f51ac9463bde910.tar.gz vdr-plugin-text2skin-eeda27b9d069161db0261f6e2f51ac9463bde910.tar.bz2 |
2005-12-18: Version 1.1-cvs_ext-0.4 (vdr-text2skin-1.1-cvs_ext-0.4.diff)
- modified the way, the current replayed recording is determined (status.c:
cText2SkinStatus::Replaying)
There remains a problem that recordings with the same name cannot be
distinguished, so information optained from mReplay are not necessarily
correct (all the ones added in vdr-text2skin-1.1-cvs_ext-0.2.diff)
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -53,12 +53,28 @@ void cText2SkinStatus::Replaying(const cControl* /*Control*/, const char *Name) mReplayIsLoop = Name[1] == 'L'; mReplayIsShuffle = Name[2] == 'S'; } - } + } + /* + I tried the following, but this is not thread-safe and it seems that + 'LastReplayed()' is not allways up to date, when cStatus::Replaying() + is called: + else if (const cRecording *rec = GetRecordingByFileName(cReplayControl::LastReplayed())) { mReplay = rec; mReplayMode = replayNormal; } + + so here is a temporary implementation which has the problem, that several + recordings with the same name cannot be seperated. This is deactivated + in Enigma (as it is more ore less useless), till there is a decent fix for + that. + */ + else if (const cRecording *rec = GetRecordingByName(Name)) + { + mReplay = rec; + mReplayMode = replayNormal; + } else if (strcmp(Name, "DVD") == 0) mReplayMode = replayDVD; else if (strcmp(Name, "VCD") == 0) |