[vlc-devel] commit: directory: restore check against standard input ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jan 16 17:56:57 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 16 18:48:53 2010 +0200| [e5afe49af364081da062133856a8c5adad35bbbf] | committer: Rémi Denis-Courmont
directory: restore check against standard input
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5afe49af364081da062133856a8c5adad35bbbf
---
modules/access/file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 0a9852f..7b34f3e 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -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)
More information about the vlc-devel
mailing list