Commit e5afe49a authored by Rémi Denis-Courmont's avatar 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.
parent c6ab35db
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment