[vlc-devel] commit: Do not try to open - as a directory ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Oct 22 23:02:24 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Oct 23 00:01:25 2008 +0300| [92a5ba7153284c3600716342255cb0ed4cfb9ed8] | committer: Rémi Denis-Courmont 

Do not try to open - as a directory

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

 modules/access/directory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index ae7bf4b..213095f 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -149,7 +149,7 @@ static int Open( vlc_object_t *p_this )
 {
     access_t *p_access = (access_t*)p_this;
 
-    if( !p_access->psz_path )
+    if( !p_access->psz_path || !strcmp( p_access->psz_path, "-" ) )
         return VLC_EGENERIC;
 
     DIR *handle = OpenDir (p_this, p_access->psz_path);




More information about the vlc-devel mailing list