Commit dab3b929 authored by Laurent Aimar's avatar Laurent Aimar

* access2: fixed seeking.

 * ftp: converted to access2.
parent 92777ea1
...@@ -41,6 +41,7 @@ vlc_module_begin(); ...@@ -41,6 +41,7 @@ vlc_module_begin();
set_callbacks( Access2Open, Access2Close ); set_callbacks( Access2Open, Access2Close );
add_shortcut( "access2" ); add_shortcut( "access2" );
add_shortcut( "http" ); add_shortcut( "http" );
add_shortcut( "ftp" );
/* Hack */ /* Hack */
//add_shortcut( "file" ); //add_shortcut( "file" );
...@@ -227,7 +228,7 @@ static void Access2Seek( input_thread_t *p_input, off_t i_pos ) ...@@ -227,7 +228,7 @@ static void Access2Seek( input_thread_t *p_input, off_t i_pos )
if( p_access->pf_seek != NULL && p_input->stream.b_seekable ) if( p_access->pf_seek != NULL && p_input->stream.b_seekable )
{ {
if( p_access->pf_seek( p_access, i_pos ) ) if( !p_access->pf_seek( p_access, i_pos ) )
{ {
vlc_mutex_lock( &p_input->stream.stream_lock ); vlc_mutex_lock( &p_input->stream.stream_lock );
p_input->stream.p_selected_area->i_tell = i_pos; p_input->stream.p_selected_area->i_tell = i_pos;
......
This diff is collapsed.
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