From bc5cf335ff776034e3182ab6557cea9ab9f22ac1 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 10 May 2013 13:44:52 +0200 Subject: [PATCH] xbmc: add PR2493 Signed-off-by: Stephan Raue --- .../patches/12.2.0/xbmc-990.13-PR2493.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 packages/mediacenter/xbmc/patches/12.2.0/xbmc-990.13-PR2493.patch diff --git a/packages/mediacenter/xbmc/patches/12.2.0/xbmc-990.13-PR2493.patch b/packages/mediacenter/xbmc/patches/12.2.0/xbmc-990.13-PR2493.patch new file mode 100644 index 0000000000..21bbc0d531 --- /dev/null +++ b/packages/mediacenter/xbmc/patches/12.2.0/xbmc-990.13-PR2493.patch @@ -0,0 +1,29 @@ +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 170b5a9..fbe7913 100644 +--- a/xbmc/video/VideoInfoScanner.cpp ++++ b/xbmc/video/VideoInfoScanner.cpp +@@ -1771,7 +1771,10 @@ + 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()) +-- +1.8.1.6 +