summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-17 16:03:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-17 16:03:49 +0100
commit3db87e806caf5deef10918e58294774a291eb939 (patch)
treedf37900ceffc8111a1b5f56f177ae468059102fa /menu.c
parentaaf792357da5d9aaa0f8f61da78daf12508a69c4 (diff)
downloadvdr-3db87e806caf5deef10918e58294774a291eb939.tar.gz
vdr-3db87e806caf5deef10918e58294774a291eb939.tar.bz2
Taking EPG data from 'start + 5min' for instant recordings
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index e12e0157..89bb4ab5 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.154 2002/02/17 14:00:54 kls Exp $
+ * $Id: menu.c 1.155 2002/02/17 16:03:49 kls Exp $
*/
#include "menu.h"
@@ -2436,10 +2436,12 @@ cRecordControl::~cRecordControl()
delete fileName;
}
+#define INSTANT_REC_EPG_LOOKAHEAD 300 // seconds to look into the EPG data for an instant recording
+
bool cRecordControl::GetEventInfo(void)
{
cChannel *channel = Channels.GetByNumber(timer->channel);
- time_t Time = timer->IsSingleEvent() ? timer->StartTime() + ((Setup.MarginStart * 2) + 1) * 60 : timer->StartTime() + (timer->StopTime() - timer->StartTime()) / 2;
+ time_t Time = timer->active == taActInst ? timer->StartTime() + INSTANT_REC_EPG_LOOKAHEAD : timer->StartTime() + (timer->StopTime() - timer->StartTime()) / 2;
for (int seconds = 0; seconds <= MAXWAIT4EPGINFO; seconds++) {
{
cThreadLock ThreadLock;