Mercurial > libdvdread4.hg
diff dvd_reader.c @ 50:60720f86d145 src
in _WIN32 do a sanity check against \video_ts in addition to /video_ts, because both paths are admitted; patch by John Stebbins from Handbrake
author | nicodvb |
---|---|
date | Tue, 01 Jun 2010 07:27:56 +0000 |
parents | 9db0de5db7c8 |
children | 645a8b52b951 |
line wrap: on
line diff
--- a/dvd_reader.c Fri May 28 13:24:16 2010 +0000 +++ b/dvd_reader.c Tue Jun 01 07:27:56 2010 +0000 @@ -453,6 +453,13 @@ } } +#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" ) ) {