summaryrefslogtreecommitdiff
path: root/imagecache.c
diff options
context:
space:
mode:
Diffstat (limited to 'imagecache.c')
-rw-r--r--imagecache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imagecache.c b/imagecache.c
index 29690c3..e7db262 100644
--- a/imagecache.c
+++ b/imagecache.c
@@ -43,7 +43,8 @@ void cImageCache::CreateCache(void) {
//Channel Logos
if (config.GetValue("numLogosInitial") > 0) {
int channelsCached = 0;
- for (const cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) {
+ LOCK_CHANNELS_READ;
+ for (const cChannel *channel = Channels->First(); channel; channel = Channels->Next(channel)) {
if (channelsCached >= config.GetValue("numLogosInitial"))
break;
if (!channel->GroupSep()) {