summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorFrank Neumann <fnu@yavdr.org>2017-05-21 23:39:41 +0200
committerFrank Neumann <fnu@yavdr.org>2017-05-21 23:39:41 +0200
commit4b318a390eb5fbf44978cb742e650c6e5208a823 (patch)
tree77a269e823fe1cf938f18050935f0f2e0318467c /common.c
parent627afe268e2ceaeca3d4d2dea51401019f7a10bf (diff)
downloadvdr-plugin-text2skin-4b318a390eb5fbf44978cb742e650c6e5208a823.tar.gz
vdr-plugin-text2skin-4b318a390eb5fbf44978cb742e650c6e5208a823.tar.bz2
add VDR API 2.3.1 compatibility for t2s-rerunandtab.diff
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 << " - ";