Bug #2517 » skinflatplus_locking2.patch
displaymenu.c | ||
---|---|---|
if( Config.MenuChannelView == 0 || !Channel )
|
||
return false;
|
||
#if VDRVERSNUM >= 20301
|
||
LOCK_SCHEDULES_READ;
|
||
#else
|
||
cSchedulesLock schedulesLock;
|
||
const cSchedules *schedules = cSchedules::Schedules(schedulesLock);
|
||
#endif
|
||
const cEvent *Event = NULL;
|
||
bool DrawProgress = true;
|
||
... | ... | |
// event from channel
|
||
#if VDRVERSNUM >= 20301
|
||
LOCK_SCHEDULES_READ;
|
||
const cSchedule *Schedule = Schedules->GetSchedule( Channel );
|
||
#else
|
||
cSchedulesLock schedulesLock;
|
||
const cSchedules *schedules = cSchedules::Schedules(schedulesLock);
|
||
const cSchedule *Schedule = schedules->GetSchedule( Channel->GetChannelID() );
|
||
#endif
|
||
if( Schedule ) {
|