summaryrefslogtreecommitdiff
path: root/channelcolumn.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-04-01 17:23:52 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:40:33 +0100
commitb054fa2c12f58e2b406be903d92e81f1013e526b (patch)
treeb98626555153c7dd3ab24a93d740a04a781ec91c /channelcolumn.c
parentaa26a69ef800f360d48501596d53fb768ad090f9 (diff)
downloadvdr-plugin-tvguide-b054fa2c12f58e2b406be903d92e81f1013e526b.tar.gz
vdr-plugin-tvguide-b054fa2c12f58e2b406be903d92e81f1013e526b.tar.bz2
Updated hasTimer
Diffstat (limited to 'channelcolumn.c')
-rw-r--r--channelcolumn.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/channelcolumn.c b/channelcolumn.c
index acedc01..f43f33c 100644
--- a/channelcolumn.c
+++ b/channelcolumn.c
@@ -6,6 +6,14 @@ cChannelColumn::cChannelColumn(int num, const cChannel *channel, cMyTime *myTime
this->num = num;
this->myTime = myTime;
#if VDRVERSNUM >= 20301
+ hasTimer = false;
+ const cSchedule *Schedule = NULL;
+ LOCK_SCHEDULES_READ;
+ const cSchedules* schedules = Schedules;
+ if (schedules) {
+ Schedule = schedules->GetSchedule(channel);
+ hasTimer = Schedule ? Schedule->HasTimer() : false;
+ }
#else
hasTimer = channel->HasTimer();
#endif
@@ -376,6 +384,14 @@ cGrid *cChannelColumn::addDummyGrid(time_t start, time_t end, cGrid *firstGrid,
void cChannelColumn::SetTimers() {
#if VDRVERSNUM >= 20301
+ hasTimer = false;
+ const cSchedule *Schedule = NULL;
+ LOCK_SCHEDULES_READ;
+ const cSchedules* schedules = Schedules;
+ if (schedules) {
+ Schedule = schedules->GetSchedule(channel);
+ hasTimer = Schedule ? Schedule->HasTimer() : false;
+ }
#else
hasTimer = channel->HasTimer();
#endif