Commit f5ffcbe5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Access: remove special case for "-" (standard input)

"-" is now converted to "fd://0" by the input code. And file:///- really
means /- (which is a valid file name).
parent 22c52b2b
......@@ -1367,9 +1367,6 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
return VLC_SUCCESS;
}
if( !strcmp( psz_name, "-" ) ) /* stdin -> file access */
return VLC_EGENERIC;
if( (i_fd = utf8_open( psz_name, O_RDONLY |O_NONBLOCK )) == -1 )
{
return VLC_SUCCESS; /* Let dvdnav_open() do the probing */
......
......@@ -140,8 +140,6 @@ int Open( vlc_object_t *p_this )
if (!strcasecmp (p_access->psz_access, "fd"))
fd = dup (atoi (path));
else if (!strcmp (path, "-"))
fd = dup (0);
else
{
msg_Dbg (p_access, "opening file `%s'", path);
......
......@@ -93,13 +93,8 @@ static int Open (vlc_object_t *p_this)
STANDARD_BLOCK_ACCESS_INIT;
if (!strcmp (p_access->psz_path, "-"))
fd = dup (0);
else
{
msg_Dbg (p_access, "opening file %s", path);
fd = utf8_open (path, O_RDONLY | O_NOCTTY);
}
msg_Dbg (p_access, "opening file %s", path);
fd = utf8_open (path, O_RDONLY | O_NOCTTY);
if (fd == -1)
{
......
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