summaryrefslogtreecommitdiff
path: root/menu_blacklistedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu_blacklistedit.c')
-rw-r--r--menu_blacklistedit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/menu_blacklistedit.c b/menu_blacklistedit.c
index 4173cdb..ef5a1c3 100644
--- a/menu_blacklistedit.c
+++ b/menu_blacklistedit.c
@@ -351,7 +351,13 @@ eOSState cMenuBlacklistEdit::ProcessKey(eKeys Key)
case kOk:
if (data.useChannel==1)
{
- cChannel *ch = Channels.GetByNumber(channelMin);
+#if VDRVERSNUM > 20300
+ LOCK_CHANNELS_READ;
+ const cChannels *vdrchannels = Channels;
+#else
+ cChannels *vdrchannels = &Channels;
+#endif
+ const cChannel *ch = vdrchannels->GetByNumber(channelMin);
if (ch)
data.channelMin = ch;
else
@@ -359,7 +365,7 @@ eOSState cMenuBlacklistEdit::ProcessKey(eKeys Key)
ERROR(tr("*** Invalid Channel ***"));
break;
}
- ch = Channels.GetByNumber(channelMax);
+ ch = vdrchannels->GetByNumber(channelMax);
if (ch)
data.channelMax = ch;
else