mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Changes for locking in cChannelColumn::SetTimers()
This commit is contained in:
parent
b054fa2c12
commit
b086cf85dc
@ -386,11 +386,13 @@ void cChannelColumn::SetTimers() {
|
|||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20301
|
||||||
hasTimer = false;
|
hasTimer = false;
|
||||||
const cSchedule *Schedule = NULL;
|
const cSchedule *Schedule = NULL;
|
||||||
|
{
|
||||||
LOCK_SCHEDULES_READ;
|
LOCK_SCHEDULES_READ;
|
||||||
const cSchedules* schedules = Schedules;
|
const cSchedules* schedules = Schedules;
|
||||||
if (schedules) {
|
if (schedules) {
|
||||||
Schedule = schedules->GetSchedule(channel);
|
Schedule = schedules->GetSchedule(channel);
|
||||||
hasTimer = Schedule ? Schedule->HasTimer() : false;
|
hasTimer = Schedule ? Schedule->HasTimer() : false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
hasTimer = channel->HasTimer();
|
hasTimer = channel->HasTimer();
|
||||||
|
@ -155,9 +155,11 @@ void cEpgGrid::drawText() {
|
|||||||
drawIcon("Switch", theme.Color(clrButtonYellow));
|
drawIcon("Switch", theme.Color(clrButtonYellow));
|
||||||
if (hasTimer) {
|
if (hasTimer) {
|
||||||
const cTimer *timer = NULL;
|
const cTimer *timer = NULL;
|
||||||
|
{
|
||||||
LOCK_TIMERS_READ;
|
LOCK_TIMERS_READ;
|
||||||
timer = Timers->GetMatch(event);
|
timer = Timers->GetMatch(event);
|
||||||
if (timer)
|
}
|
||||||
|
if (timer)
|
||||||
#ifdef USE_SWITCHONLY
|
#ifdef USE_SWITCHONLY
|
||||||
if (timer->HasFlags(tfSwitchOnly))
|
if (timer->HasFlags(tfSwitchOnly))
|
||||||
drawIcon("Switch", theme.Color(clrButtonYellow));
|
drawIcon("Switch", theme.Color(clrButtonYellow));
|
||||||
|
Loading…
Reference in New Issue
Block a user