From f414acdadb344f39285e26f0ce8861764efadde1 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 11 Jun 2017 18:08:02 +0200 Subject: 2017-06-11: version 1.1.68 (horchi)\n - change: Added lock macros for easier handling the vdr versions\n\n --- update.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'update.c') diff --git a/update.c b/update.c index 92c72e0..a3cbd3f 100644 --- a/update.c +++ b/update.c @@ -10,6 +10,7 @@ #include #include +#include "lib/vdrlocks.h" #include "lib/xml.h" #include "epg2vdr.h" #include "update.h" @@ -1624,12 +1625,13 @@ int cUpdate::refreshEpg(const char* forChannelId, int maxTries) if (timerChanges) { -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) - LOCK_TIMERS_WRITE; - cTimers* timers = Timers; -#else - cTimers* timers = &Timers; -#endif +//#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) + GET_TIMERS_WRITE(timers); + // LOCK_TIMERS_WRITE; + // cTimers* timers = Timers; +// #else +// cTimers* timers = &Timers; +// #endif timers->SetModified(); } -- cgit v1.2.3