Permalink
Browse files

Fix: Get URIUtils::IsDVD to return true when playing DVD

  • Loading branch information...
1 parent 32046c1 commit ae69fddf5d3541414ae8a709d2f66ebe0faec4b1 @ScudLee committed Dec 29, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 xbmc/utils/URIUtils.cpp
View
@@ -506,6 +506,11 @@ bool URIUtils::IsHD(const CStdString& strFileName)
bool URIUtils::IsDVD(const CStdString& strFile)
{
+ CStdString strFileLow = strFile;
+ strFileLow.MakeLower();
+ if (strFileLow.Find("video_ts.ifo") != -1 && IsOnDVD(strFile))
+ return true;
+
#if defined(_WIN32)
if (strFile.Left(6).Equals("dvd://"))
return true;
@@ -517,8 +522,6 @@ bool URIUtils::IsDVD(const CStdString& strFile)
if(GetDriveType(strFile.c_str()) == DRIVE_CDROM)
return true;
#else
- CStdString strFileLow = strFile;
- strFileLow.MakeLower();
if (strFileLow == "d:/" || strFileLow == "d:\\" || strFileLow == "d:" || strFileLow == "iso9660://" || strFileLow == "udf://" || strFileLow == "dvd://1" )
return true;
#endif

0 comments on commit ae69fdd

Please sign in to comment.