Merge pull request #4406 from jmarshallnz/thumb_fixes
[vuplus_xbmc] / xbmc / ThumbLoader.cpp
index 865b843..4aa7b2c 100644 (file)
@@ -103,13 +103,12 @@ bool CProgramThumbLoader::FillThumb(CFileItem &item)
 
   if (thumb.empty())
   { // see whether we have a cached image for this item
-    CProgramThumbLoader loader;
-    thumb = loader.GetCachedImage(item, "thumb");
+    thumb = GetCachedImage(item, "thumb");
     if (thumb.empty())
     {
       thumb = GetLocalThumb(item);
       if (!thumb.empty())
-        loader.SetCachedImage(item, "thumb", thumb);
+        SetCachedImage(item, "thumb", thumb);
     }
   }