]> git.sesse.net Git - vlc/commitdiff
directory: restore check against standard input
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 16:48:53 +0000 (18:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Jan 2010 16:48:53 +0000 (18:48 +0200)
We could handle directories as descriptors, but we currently don't. In
the mean time, we had better show an error than generate corrupt
playlist entries.

modules/access/file.c

index 0a9852f75cf7f29dd1367615d34e429073064ad8..7b34f3ef36899b3351eb04c6ad873f281a802c40 100644 (file)
@@ -192,6 +192,8 @@ int Open( vlc_object_t *p_this )
      * how to parse the data. The directory plugin will do it. */
     if (S_ISDIR (st.st_mode))
     {
+        if (!strcasecmp (p_access->psz_access, "fd"))
+            goto error; /* fd:// not supported for directories yet */
 #ifdef HAVE_FDOPENDIR
         DIR *handle = fdopendir (fd);
         if (handle == NULL)