Skip to content

Commit

Permalink
Fix: Get URIUtils::IsDVD to return true when playing DVD
Browse files Browse the repository at this point in the history
  • Loading branch information
ScudLee authored and elupus committed Jan 2, 2012
1 parent d65399e commit 937c184
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xbmc/utils/URIUtils.cpp
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 937c184

Please sign in to comment.