]> git.sesse.net Git - vlc/commitdiff
vdr access: trivial Open() fix
authorJanne Kujanpää <jikuja@iki.fi>
Mon, 10 Oct 2011 22:09:13 +0000 (01:09 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 12 Oct 2011 23:06:08 +0000 (01:06 +0200)
fixed: module will now work if directory name ends with DIR_SEP

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/vdr.c

index 284a36bac19fdc634d817da83cfbb87b2a4d5309..cd5427b6788a98517f579b9f99bef83af34336b6 100644 (file)
@@ -186,7 +186,8 @@ static int Open( vlc_object_t *p_this )
     if( b_strict )
     {
         const char *psz_ext = strrchr( p_access->psz_filepath, '.' );
-        if( !psz_ext || strcasecmp( psz_ext, ".rec" ) )
+        if( !psz_ext || ( strcasecmp( psz_ext, ".rec" )
+            && strcasecmp( psz_ext, ".rec" DIR_SEP ) ) )
             return VLC_EGENERIC;
     }