diff options
-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(); |