diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-03-04 15:25:44 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-03-04 15:26:27 +0100 |
commit | f653594c4a82eef62ec16d9daab2f964f416a12e (patch) | |
tree | 600663e3534c0c3c4c16e37cc522e5d1fdbd2efa /recmenus.c | |
parent | 8129d116fb6f8b2c77c9e3ad3dac7e18716b91f8 (diff) | |
download | vdr-plugin-tvguide-f653594c4a82eef62ec16d9daab2f964f416a12e.tar.gz vdr-plugin-tvguide-f653594c4a82eef62ec16d9daab2f964f416a12e.tar.bz2 |
Fixes for <VDR-2.3.1 compatibility
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1435,9 +1435,6 @@ void cRecMenuTimeline::GetTimersForDay(void) { #if VDRVERSNUM >= 20301 LOCK_TIMERS_READ; const cTimers* timers = Timers; -#else - const cTimers* timers = &Timers; -#endif cSortedTimers SortedTimers(timers); int i = 0; while (i < SortedTimers.Size()) { @@ -1448,6 +1445,13 @@ void cRecMenuTimeline::GetTimersForDay(void) { } i++; } +#else + for (const cTimer *t = Timers.First(); t; t = Timers.Next(t)) { + if (((t->StartTime() > timeStart) && (t->StartTime() <= timeStop)) || ((t->StopTime() > timeStart) && (t->StopTime() <= timeStop))) { + timersToday.push_back(t); + } + } +#endif numTimersToday = timersToday.size(); } |