[vlc-commits] vdr access: trivial Open() fix

Janne Kujanpää git at videolan.org
Thu Oct 13 01:06:16 CEST 2011


vlc | branch: master | Janne Kujanpää <jikuja at iki.fi> | Tue Oct 11 01:09:13 2011 +0300| [4cdd914a2f5842c5ff0e92e84fa6fca9dbe1425f] | committer: 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 <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cdd914a2f5842c5ff0e92e84fa6fca9dbe1425f
---

 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;
     }
 



More information about the vlc-commits mailing list