aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2018-09-11 19:26:10 +0200
committerace20022 <ace20022@ymail.com>2018-09-11 19:27:18 +0200
commit04524496a7b3f3b912ba8a238a571a4a7d720077 (patch)
treee2b36f343b8643d8f3ef3e7ebc7c5dd52085c52a
parent8baafbeefae9e583557db60a56eda4ab3bd50889 (diff)
[FileItem] Refine IsBluray() method.
-rw-r--r--xbmc/FileItem.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp
index feaf27725f..66304500ef 100644
--- a/xbmc/FileItem.cpp
+++ b/xbmc/FileItem.cpp
@@ -1177,7 +1177,12 @@ bool CFileItem::IsMultiPath() const
bool CFileItem::IsBluray() const
{
- return URIUtils::IsBluray(m_strPath);
+ if (URIUtils::IsBluray(m_strPath))
+ return true;
+
+ CFileItem item = CFileItem(GetOpticalMediaPath(), false);
+
+ return item.IsBDFile();
}
bool CFileItem::IsCDDA() const