Commit 4cdd914a authored by Janne Kujanpää's avatar Janne Kujanpää Committed by Jean-Baptiste Kempf

vdr access: trivial Open() fix

fixed: module will now work if directory name ends with DIR_SEP
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent acb1518a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment