Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bluray: make sure bluray play selection is shown from library

  • Loading branch information...
commit 5fb932d22d35c5460eb6278642013b5d6c4338da 1 parent 46889f2
@elupus elupus authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 xbmc/video/windows/GUIWindowVideoBase.cpp
View
12 xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -1063,9 +1063,15 @@ bool CGUIWindowVideoBase::ShowPlaySelection(CFileItemPtr& item)
if (item->m_lStartOffset)
return true;
- if (item->IsBDFile())
+ CStdString path;
+ if (item->IsVideoDb())
+ path = item->GetVideoInfoTag()->m_strFileNameAndPath;
+ else
+ path = item->GetPath();
+
+ if (URIUtils::GetFileName(path) == "index.bdmv")
{
- CStdString root = URIUtils::GetParentPath(item->GetPath());
+ CStdString root = URIUtils::GetParentPath(path);
URIUtils::RemoveSlashAtEnd(root);
if(URIUtils::GetFileName(root) == "BDMV")
{
@@ -1075,7 +1081,7 @@ bool CGUIWindowVideoBase::ShowPlaySelection(CFileItemPtr& item)
}
}
- if (URIUtils::HasExtension(item->GetPath(), ".iso|.img"))
+ if (URIUtils::HasExtension(path, ".iso|.img"))
{
CURL url2("udf://");
url2.SetHostName(item->GetPath());
Please sign in to comment.
Something went wrong with that request. Please try again.