Skip to content
This repository
Browse code

bluray: make sure bluray play selection is shown from library

  • Loading branch information...
commit 5fb932d22d35c5460eb6278642013b5d6c4338da 1 parent 46889f2
Joakim Plate authored September 09, 2013
12  xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -1063,9 +1063,15 @@ bool CGUIWindowVideoBase::ShowPlaySelection(CFileItemPtr& item)
1063 1063
   if (item->m_lStartOffset)
1064 1064
     return true;
1065 1065
 
1066  
-  if (item->IsBDFile())
  1066
+  CStdString path;
  1067
+  if (item->IsVideoDb())
  1068
+    path = item->GetVideoInfoTag()->m_strFileNameAndPath;
  1069
+  else
  1070
+    path = item->GetPath();
  1071
+
  1072
+  if (URIUtils::GetFileName(path) == "index.bdmv")
1067 1073
   {
1068  
-    CStdString root = URIUtils::GetParentPath(item->GetPath());
  1074
+    CStdString root = URIUtils::GetParentPath(path);
1069 1075
     URIUtils::RemoveSlashAtEnd(root);
1070 1076
     if(URIUtils::GetFileName(root) == "BDMV")
1071 1077
     {
@@ -1075,7 +1081,7 @@ bool CGUIWindowVideoBase::ShowPlaySelection(CFileItemPtr& item)
1075 1081
     }
1076 1082
   }
1077 1083
 
1078  
-  if (URIUtils::HasExtension(item->GetPath(), ".iso|.img"))
  1084
+  if (URIUtils::HasExtension(path, ".iso|.img"))
1079 1085
   {
1080 1086
     CURL url2("udf://");
1081 1087
     url2.SetHostName(item->GetPath());

0 notes on commit 5fb932d

Please sign in to comment.
Something went wrong with that request. Please try again.