summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave <vdr@pickles.me.uk>2012-05-02 19:25:15 +0100
committerDave <vdr@pickles.me.uk>2012-05-02 19:25:15 +0100
commitc465e7debbd105784335142afbb6c8969f50ece6 (patch)
tree22a185f4f99122da23e014c51ea9b71d77d63736
parent2544afc1b2ab74df638bd11a0a2d63ccba293255 (diff)
downloadvdrtva-c465e7debbd105784335142afbb6c8969f50ece6.tar.gz
vdrtva-c465e7debbd105784335142afbb6c8969f50ece6.tar.bz2
Correctly maintain list counts.
-rw-r--r--README - vps4
-rw-r--r--vdr-1.7.22-rsvps.patch (renamed from vdrvps-1.7.22.diff)0
-rw-r--r--vdrtva.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/README - vps b/README - vps
index 68aff42..dde243c 100644
--- a/README - vps
+++ b/README - vps
@@ -12,8 +12,8 @@ longer work.
To use VPS for accurate recording, some conditions must be met:
- VDR must be compiled with the 'VPS Fallback' patch (included with this
- plugin). Note that some Linux distributions (eg. Mandriva) include this
- patch in their binaries.
+ plugin). Note that some Linux distributions (eg. Mandriva and Mageia) include
+ this patch in their binaries.
- Parameters 'UseVps' and 'VpsFallback' in setup.conf must both be set to 1
- Timers must have the 'use VPS' flag set
- The start time of a timer must be set to exactly the scheduled start time of
diff --git a/vdrvps-1.7.22.diff b/vdr-1.7.22-rsvps.patch
index c851995..c851995 100644
--- a/vdrvps-1.7.22.diff
+++ b/vdr-1.7.22-rsvps.patch
diff --git a/vdrtva.c b/vdrtva.c
index cc25350..aecfdb6 100644
--- a/vdrtva.c
+++ b/vdrtva.c
@@ -1318,6 +1318,7 @@ void cEventCRIDs::Expire(void)
const cEvent *event = schedule->GetEvent(crid->Eid(), 0);
if (!event) {
Del(crid);
+ maxNumber--;
i++;
}
}
@@ -1381,6 +1382,7 @@ void cSuggestCRIDs::DeDup(void) {
cSuggestCRID *next = Next(suggest);
if (next && !strcmp(next->iCRID(), suggest->iCRID()) && !strcmp(next->gCRID(), suggest->gCRID())) {
Del(suggest);
+ maxNumber--;
i++;
}
suggest = next;
@@ -1403,6 +1405,7 @@ void cSuggestCRIDs::Expire(void) {
}
if (!found) {
Del(suggest);
+ maxNumber--;
i++;
}
suggest = next;