]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
imagecache: fix compilation error (mono variable) when not enabled
authorJaroslav Kysela <perex@perex.cz>
Fri, 11 Mar 2016 09:43:10 +0000 (10:43 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 11 Mar 2016 09:43:10 +0000 (10:43 +0100)
src/imagecache.c

index b87057757efe29c8abd2d41ea645ac66052f6611..acb94ca9cb0c489e54a5ea78941241aab77db1dd 100644 (file)
@@ -642,7 +642,6 @@ imagecache_open ( uint32_t id )
   imagecache_image_t skel, *i;
   char *fn;
   int fd = -1;
-  int64_t mono;
 
   lock_assert(&global_lock);
 
@@ -662,6 +661,7 @@ imagecache_open ( uint32_t id )
 #if ENABLE_IMAGECACHE
   else if (imagecache_conf.enabled) {
     int e;
+    int64_t mono;
 
     /* Use existing */
     if (i->updated) {