]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
imagecache: the timer function is already called inside imagecache_lock (sorry),...
authorJaroslav Kysela <perex@perex.cz>
Wed, 26 Dec 2018 22:08:39 +0000 (23:08 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 26 Dec 2018 22:08:39 +0000 (23:08 +0100)
src/imagecache.c

index b183bbdb202b47c6302a8037ff52c27bb2f82512..d4dd3c8f77952b7c7006d3594e91fb2fbf14bc92 100644 (file)
@@ -385,7 +385,6 @@ imagecache_timer ( void )
   time_t now, when;
   imagecache_image_t *img, *img_next;
 
-  tvh_mutex_lock(&imagecache_lock);
   now = gclk();
   for (img = RB_FIRST(&imagecache_by_url); img; img = img_next) {
     img_next = RB_NEXT(img, url_link);
@@ -404,7 +403,6 @@ imagecache_timer ( void )
     if (when < now)
       imagecache_image_add(img);
   }
-  tvh_mutex_unlock(&imagecache_lock);
 }
 
 static void *