diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:42:44 +0200 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-05-03 13:42:44 +0200 |
commit | 39dc33f360031e86e4c08f969054f6b555e738ae (patch) | |
tree | 1dffc5ff014b8871da62a431c154cffcf49e3828 /imagecache.c | |
parent | 0ae15aebbf31c52fd676e1d68ee45402b857750d (diff) | |
download | skin-nopacity-39dc33f360031e86e4c08f969054f6b555e738ae.tar.gz skin-nopacity-39dc33f360031e86e4c08f969054f6b555e738ae.tar.bz2 |
Do locking for vdr-2.3.x
Diffstat (limited to 'imagecache.c')
-rw-r--r-- | imagecache.c | 3 |
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()) { |