Project

General

Profile

Bug #2517 » skinflatplus_locking2.patch

nanohcv, 08/24/2017 06:41 PM

View differences:

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 ) {
(5-5/6)