summaryrefslogtreecommitdiff
path: root/imagecache.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-08 13:02:38 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:29:38 +0100
commitcbc6f442648a0aea4b94d81176f044c642a7d2b0 (patch)
tree3bfdc0baebcbaec7845edcc521b4041e6a25035c /imagecache.c
parent8287bb5f7deef757f38b3e2a4ed5a08a57881f7e (diff)
downloadvdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.gz
vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.bz2
Compile under VDR 2.3.1
Diffstat (limited to 'imagecache.c')
-rw-r--r--imagecache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/imagecache.c b/imagecache.c
index eb3117c..5b95e54 100644
--- a/imagecache.c
+++ b/imagecache.c
@@ -280,7 +280,12 @@ void cImageCache::CreateLogoCache(void) {
return;
if (tvguideConfig.numLogosInitial > 0) {
int channelsCached = 0;
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_CHANNELS_READ;
+ for (const cChannel *channel = Channels->First(); channel; channel = Channels->Next(channel)) {
+#else
for (const cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) {
+#endif
if (channelsCached >= tvguideConfig.numLogosInitial)
break;
if (!channel->GroupSep()) {