diff options
author | Frank Neumann <fnu@yavdr.org> | 2017-05-21 23:39:41 +0200 |
---|---|---|
committer | Frank Neumann <fnu@yavdr.org> | 2017-05-21 23:39:41 +0200 |
commit | 4b318a390eb5fbf44978cb742e650c6e5208a823 (patch) | |
tree | 77a269e823fe1cf938f18050935f0f2e0318467c /common.c | |
parent | 627afe268e2ceaeca3d4d2dea51401019f7a10bf (diff) | |
download | vdr-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 << " - "; |