summaryrefslogtreecommitdiff
path: root/imagecache.c
diff options
context:
space:
mode:
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()) {