diff options
Diffstat (limited to 'timerconflict.c')
-rw-r--r-- | timerconflict.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/timerconflict.c b/timerconflict.c index e2a1fee..79f2ce4 100644 --- a/timerconflict.c +++ b/timerconflict.c @@ -86,7 +86,12 @@ void cTVGuideTimerConflicts::CalculateConflicts(void) { cTimeInterval *unionSet = NULL;
int numTimers = conflicts[i]->timerIDs.size();
for (int j=0; j < numTimers; j++) {
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_TIMERS_READ;
+ const cTimer *timer = Timers->Get(conflicts[i]->timerIDs[j]);
+#else
const cTimer *timer = Timers.Get(conflicts[i]->timerIDs[j]);
+#endif
if (timer) {
if (!unionSet) {
unionSet = new cTimeInterval(timer->StartTime(), timer->StopTime());
@@ -105,7 +110,12 @@ void cTVGuideTimerConflicts::CalculateConflicts(void) { cTimeInterval *intersect = NULL;
for (int j=0; j < numTimers; j++) {
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_TIMERS_READ;
+ const cTimer *timer = Timers->Get(conflicts[i]->timerIDs[j]);
+#else
const cTimer *timer = Timers.Get(conflicts[i]->timerIDs[j]);
+#endif
if (timer) {
if (!intersect) {
intersect = new cTimeInterval(timer->StartTime(), timer->StopTime());
|