summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2019-09-19 17:53:09 (GMT)
committerJohann Friedrichs <johann.friedrichs@web.de>2019-09-19 17:53:09 (GMT)
commit84811de871e42264a67de26d2dd55fc2ab09cbd1 (patch)
treeb99f67e7eb17e479f4aad40a37c89ac5ec12768c
parentfe85b18765ad945dbf590766c4274af64fb40f2a (diff)
downloadvdr-plugin-epgsearch-master.tar.gz
vdr-plugin-epgsearch-master.tar.bz2
Avoid lock sequence error when using Shift-FunctionHEADmaster
-rw-r--r--menu_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/menu_main.c b/menu_main.c
index 30f7724..63ecf9a 100644
--- a/menu_main.c
+++ b/menu_main.c
@@ -317,8 +317,11 @@ void cMenuSearchMain::SetHelpKeys(bool Force)
eOSState cMenuSearchMain::Shift(int iMinutes)
{
shiftTime += iMinutes;
- LOCK_CHANNELS_READ;
- const cChannel *channel = Channels->GetByNumber(currentChannel);
+ const cChannel *channel;
+ {
+ LOCK_CHANNELS_READ;
+ channel = Channels->GetByNumber(currentChannel);
+ }
PrepareSchedule(channel);
Display();
SetHelpKeys();