summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave <vdr@pickles.me.uk>2012-06-16 09:01:47 +0100
committerDave <vdr@pickles.me.uk>2012-06-16 09:01:47 +0100
commitbb61f01e7f5b3a79036a5083f0137ea23416d69c (patch)
tree1afce11e01fbc1ecbda70a3964867aa0f4f9b7f1
parent710233409c3ae185280e511b70df73193e659f1b (diff)
downloadvdrtva-bb61f01e7f5b3a79036a5083f0137ea23416d69c.tar.gz
vdrtva-bb61f01e7f5b3a79036a5083f0137ea23416d69c.tar.bz2
Allow for start-padding when checking timers for changed events.
-rw-r--r--vdrtva.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vdrtva.c b/vdrtva.c
index d256539..d118bbe 100644
--- a/vdrtva.c
+++ b/vdrtva.c
@@ -631,7 +631,7 @@ bool cPluginvdrTva::AddNewEventsToSeries()
}
// Check timers to see if the event they were set to record is still in the EPG.
-// This won't work if the start time is padded.
+// This won't work if VPS is not used and the start time is padded by a custom amount.
void cPluginvdrTva::CheckChangedEvents()
{
@@ -642,7 +642,11 @@ void cPluginvdrTva::CheckChangedEvents()
const cChannel *channel = ti->Channel();
const cSchedule *schedule = Schedules->GetSchedule(channel);
if (schedule && ti->HasFlags(tfActive)) {
- const cEvent *event = schedule->GetEvent(0, ti->StartTime());
+ time_t start_time = ti->StartTime();
+ if (!ti->HasFlags(tfVps)) {
+ start_time += Setup.MarginStart * 60;
+ }
+ const cEvent *event = schedule->GetEvent(0, start_time);
const char *file = strrchr(ti->File(), '~');
if (!file) file = ti->File();
else file++;