[vlc-devel] [PATCH] vdr access: trivial Open() fix
Janne Kujanpää
jikuja at iki.fi
Tue Oct 11 00:09:13 CEST 2011
fixed: module will now work if directory name ends with DIR_SEP
---
modules/access/vdr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 284a36b..cd5427b 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -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;
}
--
1.7.6.3
More information about the vlc-devel
mailing list