Merge pull request #4406 from jmarshallnz/thumb_fixes
[vuplus_xbmc] / xbmc / ThumbLoader.cpp
index b34154a..4aa7b2c 100644 (file)
@@ -101,19 +101,18 @@ bool CProgramThumbLoader::FillThumb(CFileItem &item)
   // no need to do anything if we already have a thumb set
   CStdString thumb = item.GetArt("thumb");
 
-  if (thumb.IsEmpty())
+  if (thumb.empty())
   { // see whether we have a cached image for this item
-    CProgramThumbLoader loader;
-    thumb = loader.GetCachedImage(item, "thumb");
-    if (thumb.IsEmpty())
+    thumb = GetCachedImage(item, "thumb");
+    if (thumb.empty())
     {
       thumb = GetLocalThumb(item);
-      if (!thumb.IsEmpty())
-        loader.SetCachedImage(item, "thumb", thumb);
+      if (!thumb.empty())
+        SetCachedImage(item, "thumb", thumb);
     }
   }
 
-  if (!thumb.IsEmpty())
+  if (!thumb.empty())
   {
     CTextureCache::Get().BackgroundCacheImage(thumb);
     item.SetArt("thumb", thumb);