diff options
| author | Johann Friedrichs <johann.friedrichs@web.de> | 2019-09-19 19:53:09 +0200 |
|---|---|---|
| committer | Johann Friedrichs <johann.friedrichs@web.de> | 2019-09-19 19:53:09 +0200 |
| commit | 84811de871e42264a67de26d2dd55fc2ab09cbd1 (patch) | |
| tree | b99f67e7eb17e479f4aad40a37c89ac5ec12768c | |
| parent | fe85b18765ad945dbf590766c4274af64fb40f2a (diff) | |
| download | vdr-plugin-epgsearch-84811de871e42264a67de26d2dd55fc2ab09cbd1.tar.gz vdr-plugin-epgsearch-84811de871e42264a67de26d2dd55fc2ab09cbd1.tar.bz2 | |
Avoid lock sequence error when using Shift-Function
| -rw-r--r-- | menu_main.c | 7 |
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(); |
