From cd834c79ba26c1a10f6fa8afa3591490630cde8a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 13 Apr 2021 13:35:17 +0200 Subject: Fixed dropping outdated events --- HISTORY | 3 ++- epg.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index f9ba6686..6667d23e 100644 --- a/HISTORY +++ b/HISTORY @@ -9641,7 +9641,7 @@ Video Disk Recorder Revision History - No longer switching devices for pattern timers (thanks to Helmut Binder). - cTimer::TriggerRespawn() now only acts on local timers. -2021-04-10: +2021-04-13: - When spawning pattern timers, the new function cTimers::GetTimerForEvent() is now used to check whether a matching event already has a local spawned timer. Reason: creating a timer @@ -9651,3 +9651,4 @@ Video Disk Recorder Revision History machine was still covered by the initial timer (which, from the remote machine's standpoint, was "remote"). - Now adjusting spawned timers before setting events to timers. +- Fixed dropping outdated events. diff --git a/epg.c b/epg.c index 1f970f56..2f1d2a23 100644 --- a/epg.c +++ b/epg.c @@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider and Rolf Hakenes . * - * $Id: epg.c 5.3 2021/04/06 09:01:26 kls Exp $ + * $Id: epg.c 5.4 2021/04/13 13:35:17 kls Exp $ */ #include "epg.h" @@ -1118,9 +1118,9 @@ void cSchedule::DropOutdated(time_t SegmentStart, time_t SegmentEnd, uchar Table DelEvent(p); } } + else + break; } - else - break; p = n; } } -- cgit v1.2.3