]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: file path comparison is case insensitive on Windows
authorSteve Lhomme <robux@videolan.org>
Sun, 16 Oct 2005 18:19:32 +0000 (18:19 +0000)
committerSteve Lhomme <robux@videolan.org>
Sun, 16 Oct 2005 18:19:32 +0000 (18:19 +0000)
modules/demux/mkv.cpp

index 454826202a2089d0854ff5a11d3d19e735ed204f..b364aa55abf3e1d569f6df301661e0ef80a17932 100644 (file)
@@ -1487,7 +1487,11 @@ static int Open( vlc_object_t * p_this )
                     {
                         s_filename = s_path + DIRECTORY_SEPARATOR + p_file_item->d_name;
 
+#ifdef WIN32
+                        if (!strcasecmp(s_filename.c_str(), p_demux->psz_path))
+#else
                         if (!s_filename.compare(p_demux->psz_path))
+#endif
                             continue; // don't reuse the original opened file
 
 #if defined(__GNUC__) && (__GNUC__ < 3)