Mercurial > libdvdread4.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49:1acf15da93ba | 50:60720f86d145 |
---|---|
451 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) { | 451 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) { |
452 path_copy[ strlen( path_copy ) - 1 ] = '\0'; | 452 path_copy[ strlen( path_copy ) - 1 ] = '\0'; |
453 } | 453 } |
454 } | 454 } |
455 | 455 |
456 #ifdef _WIN32 | |
457 if(strlen(path_copy) > TITLES_MAX) { | |
458 if(!strcasecmp(&(path_copy[strlen( path_copy ) - TITLES_MAX]), | |
459 "\\video_ts")) | |
460 path_copy[strlen(path_copy) - (TITLES_MAX-1)] = '\0'; | |
461 } | |
462 #endif | |
456 if( strlen( path_copy ) > TITLES_MAX ) { | 463 if( strlen( path_copy ) > TITLES_MAX ) { |
457 if( !strcasecmp( &(path_copy[ strlen( path_copy ) - TITLES_MAX ]), | 464 if( !strcasecmp( &(path_copy[ strlen( path_copy ) - TITLES_MAX ]), |
458 "/video_ts" ) ) { | 465 "/video_ts" ) ) { |
459 path_copy[ strlen( path_copy ) - TITLES_MAX ] = '\0'; | 466 path_copy[ strlen( path_copy ) - TITLES_MAX ] = '\0'; |
460 } | 467 } |