[vlc-devel] [PATCH] access: vcd: cdrom: extensions are case-insensitive

Filip Roséen filip at atch.se
Wed Jul 25 03:50:51 CEST 2018


---
 modules/access/vcd/cdrom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index 732d7f3614..7b2b945fb8 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -773,7 +773,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
 
     /* Check if we are dealing with a .cue file */
     p_pos = strrchr( psz_dev, '.' );
-    if( p_pos && !strcmp( p_pos, ".cue" ) )
+    if( p_pos && !strcasecmp( p_pos, ".cue" ) )
     {
         /* psz_dev must be the cue file. Let's assume there's a .bin
          * file with the same filename */
-- 
2.18.0


More information about the vlc-devel mailing list