From ff283b0861afd35410d20c52fee8ba0542e91f8a Mon Sep 17 00:00:00 2001 From: ulion Date: Sun, 24 Mar 2013 13:19:39 +0800 Subject: [PATCH] Check exists before listing dir, to avoid produce error log, fix #14210 --- xbmc/video/VideoInfoScanner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp index 170b5a90963ce..fbe7913e624ee 100644 --- a/xbmc/video/VideoInfoScanner.cpp +++ b/xbmc/video/VideoInfoScanner.cpp @@ -1771,7 +1771,10 @@ namespace VIDEO void CVideoInfoScanner::FetchActorThumbs(vector& actors, const CStdString& strPath) { CFileItemList items; - CDirectory::GetDirectory(URIUtils::AddFileToFolder(strPath, ".actors"), items, ".png|.jpg|.tbn", DIR_FLAG_NO_FILE_DIRS | DIR_FLAG_NO_FILE_INFO); + CStdString actorsDir = URIUtils::AddFileToFolder(strPath, ".actors"); + if (CDirectory::Exists(actorsDir)) + CDirectory::GetDirectory(actorsDir, items, ".png|.jpg|.tbn", DIR_FLAG_NO_FILE_DIRS | + DIR_FLAG_NO_FILE_INFO); for (vector::iterator i = actors.begin(); i != actors.end(); ++i) { if (i->thumb.IsEmpty())