Commit d54a5f8f authored by Christophe Massiot's avatar Christophe Massiot

We can now read from stdin.

parent 1cf5dd7b
......@@ -338,6 +338,20 @@ static void FileOpen( input_thread_t * p_input )
#define p_config p_input->p_config
if( !strncmp( p_config->p_source, "-", 1 ) )
{
/* stdin */
p_input->i_handle = 0;
vlc_mutex_lock( &p_input->stream.stream_lock );
p_input->stream.b_pace_control = 1;
p_input->stream.b_seekable = 0;
p_input->stream.i_size = 0;
p_input->stream.i_tell = 0;
vlc_mutex_unlock( &p_input->stream.stream_lock );
}
else
{
if( stat( p_config->p_source, &stat_info ) == (-1) )
{
intf_ErrMsg("Cannot stat() file %s (%s)", p_config->p_source,
......@@ -381,6 +395,7 @@ static void FileOpen( input_thread_t * p_input )
p_input->b_error = 1;
return;
}
}
#undef p_config
}
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