summaryrefslogtreecommitdiff
path: root/menu_whatson.c
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2017-07-11 08:35:53 +0200
committerFrank Neumann <fnu@yavdr.org>2017-07-11 08:35:53 +0200
commit5cae26d3c63b6f80d810b6565661f8ddb2780104 (patch)
tree18c1228dc9767994070b41de2d8c861863a26b90 /menu_whatson.c
parent04124ba1ebae36f15eafe95cd23bbb8e220a8e8a (diff)
downloadvdr-plugin-epgsearch-5cae26d3c63b6f80d810b6565661f8ddb2780104.tar.gz
vdr-plugin-epgsearch-5cae26d3c63b6f80d810b6565661f8ddb2780104.tar.bz2
Another lock sequence error
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));
}