summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--display.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/display.c b/display.c
index 82ff836..bc10bd1 100644
--- a/display.c
+++ b/display.c
@@ -1263,14 +1263,24 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token)
case tChannelServiceReference:
if (mEvent) { // extended EPG
+#if APIVERSNUM < 20301
cChannel *channel = Channels.GetByChannelID(mEvent->ChannelID(), true);
+#else
+ LOCK_CHANNELS_READ;
+ const cChannel *channel = Channels->GetByChannelID(mEvent->ChannelID(), true);
+#endif
return channel != NULL
? (cxType)ChannelServiceReference(channel, 0)
: (cxType)false;
}
else if (mRecording) { // recording Info
cRecordingInfo *recInfo = const_cast<cRecordingInfo*>(mRecording->Info());
+#if APIVERSNUM < 20301
cChannel *channel = Channels.GetByChannelID(recInfo->ChannelID(), true);
+#else
+ LOCK_CHANNELS_READ;
+ const cChannel *channel = Channels->GetByChannelID(recInfo->ChannelID(), true);
+#endif
return channel != NULL
? (cxType)ChannelServiceReference(channel, 0)
: (cxType)false;