Permalink
Browse files

use pre-built function for getting path out of the infotag (thanks vd…

…rfan)
  • Loading branch information...
Jonathan Marshall
Jonathan Marshall committed Feb 1, 2012
1 parent 00e8a20 commit 6eed4802ae38e4f2942b937202e1d759ff6fe3fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/ThumbnailCache.cpp
View
@@ -232,7 +232,7 @@ CStdString CThumbnailCache::GetFanart(const CFileItem &item)
}
return GetThumb(showPath,g_settings.GetVideoFanartFolder());
}
- CStdString path = item.GetVideoInfoTag()->m_strFileNameAndPath.IsEmpty() ? item.GetVideoInfoTag()->m_strPath : item.GetVideoInfoTag()->m_strFileNameAndPath;
+ CStdString path = item.GetVideoInfoTag()->GetPath();
if (path.empty())
return "";
return GetThumb(path,g_settings.GetVideoFanartFolder());

0 comments on commit 6eed480

Please sign in to comment.