]> git.sesse.net Git - vlc/commitdiff
directory: remove special case for '-'
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 11:00:16 +0000 (13:00 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 11:00:16 +0000 (13:00 +0200)
directory does not register the "fd" shortcut, so the standard input
case should not occur.

modules/access/directory.c

index a0fe15cc088f1732131811a07dcdf115f23c144e..feb655e259f4dc83ff095599922f6c6c52ab8856 100644 (file)
@@ -100,22 +100,7 @@ int DirOpen( vlc_object_t *p_this )
     if( !p_access->psz_path )
         return VLC_EGENERIC;
 
-    DIR *handle;
-    if (strcmp (p_access->psz_path, "-"))
-        handle = utf8_opendir (p_access->psz_path);
-    else
-    {
-#if 0   /* This won't work yet, it generates paths like "-/music.ogg".
-         * We'd need to use openat() here and in the file access... */
-        int fd = dup (0);
-        handle = fdopendir (fd);
-        if (handle == NULL)
-            close (fd);
-#else
-        return VLC_EGENERIC;
-#endif
-    }
-
+    DIR *handle = utf8_opendir (p_access->psz_path);
     if (handle == NULL)
         return VLC_EGENERIC;