From 4b318a390eb5fbf44978cb742e650c6e5208a823 Mon Sep 17 00:00:00 2001 From: Frank Neumann Date: Sun, 21 May 2017 23:39:41 +0200 Subject: add VDR API 2.3.1 compatibility for t2s-rerunandtab.diff --- common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common.c') 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 << " - "; -- cgit v1.2.3