From d666b8701e003d24d1ea7fbd4bd7202b5ba9cee6 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Wed, 3 Jul 2019 12:54:57 +0200 Subject: [PATCH] Change locking in cTVGuideSearchTimer::cTVGuideSearchTimer --- searchtimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searchtimer.c b/searchtimer.c index 84d2ac5..507a7c6 100644 --- a/searchtimer.c +++ b/searchtimer.c @@ -17,9 +17,11 @@ cTVGuideSearchTimer::cTVGuideSearchTimer(void) { stopTime = 2359; useChannel = false; #if VDRVERSNUM >= 20301 + { LOCK_CHANNELS_READ; channelMin = Channels->GetByNumber(cDevice::CurrentChannel()); channelMax = Channels->GetByNumber(cDevice::CurrentChannel()); + } #else channelMin = Channels.GetByNumber(cDevice::CurrentChannel()); channelMax = Channels.GetByNumber(cDevice::CurrentChannel());