Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix log spam when the temp fonts directory does not exist (users who …
…never played an mkv with ass subs)
  • Loading branch information
CrystalP authored and CrystalP committed Nov 11, 2011
1 parent afbe8e6 commit 26cc297
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/Util.cpp
Expand Up @@ -741,8 +741,13 @@ void CUtil::ClearSubtitles()

void CUtil::ClearTempFonts()
{
CStdString searchPath = "special://temp/fonts/";

if (!CFile::Exists(searchPath))
return;

CFileItemList items;
CDirectory::GetDirectory("special://temp/fonts/", items, "", false, false, XFILE::DIR_CACHE_NEVER);
CDirectory::GetDirectory(searchPath, items, "", false, false, XFILE::DIR_CACHE_NEVER);

for (int i=0; i<items.Size(); ++i)
{
Expand Down

0 comments on commit 26cc297

Please sign in to comment.