changeset 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 1acf15da93ba
children f06a93055430
files dvd_reader.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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" ) ) {