From 2e1b2107e70585aa761446e8e5f43b43abfb7949 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 27 Dec 2021 11:05:38 +0100 Subject: [PATCH] Fixed unlocking vs. call to EpgHandlers.EndSegmentTransfer() --- CONTRIBUTORS | 1 + HISTORY | 2 ++ eit.c | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0926d4c0..5d23c9b0 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2445,6 +2445,7 @@ Christoph Haubrich for implementing anti-aliasing for cPixmap::DrawSlope() and cPixmap::DrawEllipse() for reporting an unnecessary double call to Display() in cMenuRecording::RefreshRecording() for reporting too much memory being allocated in the cImage constructors + for reporting a problem with the call to EpgHandlers.EndSegmentTransfer() Pekka Mauno for fixing cSchedule::GetFollowingEvent() in case there is currently no present diff --git a/HISTORY b/HISTORY index 0f9c6d53..9c58aef9 100644 --- a/HISTORY +++ b/HISTORY @@ -9579,3 +9579,5 @@ Video Disk Recorder Revision History - Fixed a possible crash in the Schedule menu, in case Setup.EPGLinger is 0. - Fixed cTsPayload::AtPayloadStart() to ignore TS packets from other PIDs. +- Fixed unlocking vs. call to EpgHandlers.EndSegmentTransfer() (reported by Christoph + Haubrich). diff --git a/eit.c b/eit.c index 9c3f6f61..22d17ea3 100644 --- a/eit.c +++ b/eit.c @@ -8,7 +8,7 @@ * Robert Schneider and Rolf Hakenes . * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg . * - * $Id: eit.c 4.11 2020/11/28 21:45:05 kls Exp $ + * $Id: eit.c 4.11.1.1 2021/12/27 11:04:03 kls Exp $ */ #include "eit.h" @@ -361,9 +361,9 @@ cEIT::cEIT(cSectionSyncerHash &SectionSyncerHash, int Source, u_char Tid, const EpgHandlers.DropOutdated(pSchedule, SegmentStart, SegmentEnd, Tid, getVersionNumber()); pSchedule->SetModified(); } + EpgHandlers.EndSegmentTransfer(Modified); SchedulesStateKey.Remove(Modified); ChannelsStateKey.Remove(ChannelsModified); - EpgHandlers.EndSegmentTransfer(Modified); } // --- cTDT ------------------------------------------------------------------