mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Updated hasTimer
This commit is contained in:
parent
aa26a69ef8
commit
b054fa2c12
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user