summaryrefslogtreecommitdiff
path: root/searchtimer.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-03 12:54:57 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-03 12:54:57 +0200
commitd666b8701e003d24d1ea7fbd4bd7202b5ba9cee6 (patch)
treed38f689c34bd3425a2e7b0c8301636611e5b06d1 /searchtimer.c
parent6139016102c8f001a73ba4b4a175bc7089ee9f04 (diff)
downloadvdr-plugin-tvguide-d666b8701e003d24d1ea7fbd4bd7202b5ba9cee6.tar.gz
vdr-plugin-tvguide-d666b8701e003d24d1ea7fbd4bd7202b5ba9cee6.tar.bz2
Change locking in cTVGuideSearchTimer::cTVGuideSearchTimer
Diffstat (limited to 'searchtimer.c')
-rw-r--r--searchtimer.c2
1 files changed, 2 insertions, 0 deletions
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());