[vlc-devel] [PATCH] support for seeking in AVI over http

Mike Schrag mschrag at pobox.com
Mon Oct 26 18:19:19 CET 2009


I'm using this through VLCKit -- Possibly something further up the  
chain is passing in an incorrect value?  I'll go back through and see  
if i can track down what might be going on.

ms

On Oct 26, 2009, at 1:16 PM, Rémi Denis-Courmont wrote:

> -            if( p_sys->b_seekable )
> +            if( p_sys->b_fastseekable )
>             {
>                 i64 = (mtime_t)(1000000.0 * p_sys->i_length * f );
>                 return Seek( p_demux, i64, (int)(f * 100) );
>             }
>             else
>             {
> -                int64_t i_pos = stream_Size( p_demux->s ) * f;
> +                int64_t i_pos = stream_Tell(p_demux->s) +  
> stream_Size(
> p_demux->s ) * f;
>                 return stream_Seek( p_demux->s, i_pos );
>
> This looks fishy to me... AFAIK, f is a fraction of the complete  
> file, not a
> fraction of the remainder of the file.
>
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/





More information about the vlc-devel mailing list