"-" is now converted to "fd://0" by the input code. And file:///- really
means /- (which is a valid file 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 */
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);
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)
{