Change locking in cTVGuideSearchTimer::cTVGuideSearchTimer

This commit is contained in:
kamel5 2019-07-03 12:54:57 +02:00
parent 6139016102
commit d666b8701e

View File

@ -17,9 +17,11 @@ cTVGuideSearchTimer::cTVGuideSearchTimer(void) {
stopTime = 2359; stopTime = 2359;
useChannel = false; useChannel = false;
#if VDRVERSNUM >= 20301 #if VDRVERSNUM >= 20301
{
LOCK_CHANNELS_READ; LOCK_CHANNELS_READ;
channelMin = Channels->GetByNumber(cDevice::CurrentChannel()); channelMin = Channels->GetByNumber(cDevice::CurrentChannel());
channelMax = Channels->GetByNumber(cDevice::CurrentChannel()); channelMax = Channels->GetByNumber(cDevice::CurrentChannel());
}
#else #else
channelMin = Channels.GetByNumber(cDevice::CurrentChannel()); channelMin = Channels.GetByNumber(cDevice::CurrentChannel());
channelMax = Channels.GetByNumber(cDevice::CurrentChannel()); channelMax = Channels.GetByNumber(cDevice::CurrentChannel());