Commit 98c6341d authored by John Stebbins's avatar John Stebbins

in _WIN32 do a sanity check against \video_ts in addition to /video_ts,...

 in _WIN32 do a sanity check against \video_ts in addition to /video_ts, because both paths are admitted; 

parent 342f18a7
......@@ -453,6 +453,13 @@ dvd_reader_t *DVDOpen( const char *ppath )
}
}
#ifdef _WIN32
if(strlen(path_copy) > TITLES_MAX) {
if(!strcasecmp(&(path_copy[strlen( path_copy ) - TITLES_MAX]),
"\\video_ts"))
path_copy[strlen(path_copy) - (TITLES_MAX-1)] = '\0';
}
#endif
if( strlen( path_copy ) > TITLES_MAX ) {
if( !strcasecmp( &(path_copy[ strlen( path_copy ) - TITLES_MAX ]),
"/video_ts" ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment