summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.c b/common.c
index 2b9059d..09ed126 100644
--- a/common.c
+++ b/common.c
@@ -223,7 +223,12 @@ std::string AddExtInfoToDescription(const char *Title, const char *ShortText, co
i++;
if (r->event && r->event->StartTime() < time(NULL)) continue;
std::stringstream buf;
+#if APIVERSNUM < 20301
cChannel *channel = Channels.GetByChannelID(r->event->ChannelID(), true, true);
+#else
+ LOCK_CHANNELS_READ;
+ const cChannel *channel = Channels->GetByChannelID(r->event->ChannelID(), true, true);
+#endif
if (channel)
buf << "\n";
buf << " - ";