From 1a16531679777b5442fb5c5f4cc4591df7974d22 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 16 Oct 2005 18:19:32 +0000 Subject: [PATCH] mkv.cpp: file path comparison is case insensitive on Windows --- modules/demux/mkv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp index 454826202a..b364aa55ab 100644 --- a/modules/demux/mkv.cpp +++ b/modules/demux/mkv.cpp @@ -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) -- 2.39.2