summaryrefslogtreecommitdiff
path: root/menu_whatson.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu_whatson.c')
-rw-r--r--menu_whatson.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/menu_whatson.c b/menu_whatson.c
index e3b39d8..2c85b10 100644
--- a/menu_whatson.c
+++ b/menu_whatson.c
@@ -756,8 +756,11 @@ eOSState cMenuWhatsOnSearch::ShowSummary()
const cEvent *ei = ((cMenuMyScheduleItem *)Get(Current()))->event;
if (ei)
{
- LOCK_CHANNELS_READ;
- const cChannel *channel = Channels->GetByChannelID(ei->ChannelID(), true, true);
+ const cChannel *channel;
+ {
+ LOCK_CHANNELS_READ;
+ channel = Channels->GetByChannelID(ei->ChannelID(), true, true);
+ }
if (channel)
return AddSubMenu(new cMenuEventSearch(ei, eventObjects, SurfModeChannel));
}