diff options
-rw-r--r-- | xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp index d4cc77bd9f..b9f42cab18 100644 --- a/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp +++ b/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamNavigator.cpp @@ -80,6 +80,9 @@ bool CDVDInputStreamNavigator::Open(const char* strFile, const std::string& cont { strDVDFile[strlen(strDVDFile) - 13] = '\0'; } + if (strncasecmp(strDVDFile + strlen(strDVDFile) - 8, "VIDEO_TS", 8) == 0) + strDVDFile[strlen(strDVDFile) - 9] = '\0'; + #if defined(__APPLE__) && !defined(__arm__) // if physical DVDs, libdvdnav wants "/dev/rdiskN" device name for OSX, // strDVDFile will get realloc'ed and replaced IF this is a physical DVD. |