aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarnova <nospam@void.org>2011-10-25 13:44:30 +0200
committerarnova <nospam@void.org>2011-10-25 13:44:30 +0200
commitcfa1a050d6a4919af9320f304b71b9c99927b336 (patch)
tree8f691b88b6ec48840efa3878f67e30a65223ffc0
parentc5758bffe3ec59947df36e868b1d8cbdad9345c9 (diff)
changed: CFileItem::IsInternetStream() should also have the StrictCheck option like CUtil::IsInternetStream()
changed: Cosmetics
-rw-r--r--xbmc/FileItem.cpp9
-rw-r--r--xbmc/FileItem.h2
2 files changed, 6 insertions, 5 deletions
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp
index 4475aa47aa..2ef8cbcfd6 100644
--- a/xbmc/FileItem.cpp
+++ b/xbmc/FileItem.cpp
@@ -428,6 +428,7 @@ void CFileItem::Archive(CArchive& ar)
SetInvalid();
}
}
+
void CFileItem::Serialize(CVariant& value)
{
//CGUIListItem::Serialize(value["CGUIListItem"]);
@@ -449,6 +450,7 @@ void CFileItem::Serialize(CVariant& value)
if (m_pictureInfoTag)
(*m_pictureInfoTag).Serialize(value["pictureInfoTag"]);
}
+
bool CFileItem::Exists(bool bUseCache /* = true */) const
{
if (m_strPath.IsEmpty()
@@ -595,12 +597,12 @@ bool CFileItem::IsLastFM() const
return URIUtils::IsLastFM(m_strPath);
}
-bool CFileItem::IsInternetStream() const
+bool CFileItem::IsInternetStream(const bool bStrictCheck /* = false */) const
{
if (HasProperty("IsHTTPDirectory"))
return false;
- return URIUtils::IsInternetStream(m_strPath);
+ return URIUtils::IsInternetStream(m_strPath, bStrictCheck);
}
bool CFileItem::IsFileFolder() const
@@ -2022,8 +2024,7 @@ void CFileItemList::StackFolders()
}
// stack folders
- int i = 0;
- for (i = 0; i < Size(); ++i)
+ for (int i = 0; i < Size(); i++)
{
CFileItemPtr item = Get(i);
// combined the folder checks
diff --git a/xbmc/FileItem.h b/xbmc/FileItem.h
index 162ad6f746..d6218808b3 100644
--- a/xbmc/FileItem.h
+++ b/xbmc/FileItem.h
@@ -96,7 +96,7 @@ public:
bool IsKaraoke() const;
bool IsCUESheet() const;
bool IsLastFM() const;
- bool IsInternetStream() const;
+ bool IsInternetStream(const bool bStrictCheck = false) const;
bool IsPlayList() const;
bool IsSmartPlayList() const;
bool IsPythonScript() const;