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->num = num;
|
||||||
this->myTime = myTime;
|
this->myTime = myTime;
|
||||||
#if VDRVERSNUM >= 20301
|
#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
|
#else
|
||||||
hasTimer = channel->HasTimer();
|
hasTimer = channel->HasTimer();
|
||||||
#endif
|
#endif
|
||||||
@ -376,6 +384,14 @@ cGrid *cChannelColumn::addDummyGrid(time_t start, time_t end, cGrid *firstGrid,
|
|||||||
|
|
||||||
void cChannelColumn::SetTimers() {
|
void cChannelColumn::SetTimers() {
|
||||||
#if VDRVERSNUM >= 20301
|
#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
|
#else
|
||||||
hasTimer = channel->HasTimer();
|
hasTimer = channel->HasTimer();
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,7 +69,7 @@ void cEpgGrid::SetTimer() {
|
|||||||
hasTimer = true;
|
hasTimer = true;
|
||||||
else
|
else
|
||||||
hasTimer = false;
|
hasTimer = false;
|
||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20401
|
||||||
} else if (event->HasTimer()) {
|
} else if (event->HasTimer()) {
|
||||||
hasTimer = true;
|
hasTimer = true;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user