[vlc-devel] Re: CVS Commit (sigmunau)
Christophe Massiot
massiot at via.ecp.fr
Sun Feb 23 02:13:50 CET 2003
À (At) 19:18 +0100 22/02/03, Laurent Aimar écrivait (wrote) :
> > p_input->pf_seek( p_input, p_pos->i_size + i_size2 );
>> input_AccessReinit( p_input );
>> which worked fine with the file input but did not work with http. Changing
>> it to
>>
>> input_AccessReinit( p_input );
>> p_input->pf_seek( p_input, p_pos->i_size + i_size2 );
>
> If you have a look at src/input/input_ext-plugins.c :
>"input_AccessReinit: reinit structures after a random seek"
>
> So the first way seems the good one (at least input_AccessReinit was
>designed to be used after pf_seek), and it's used this way in input.c at
>least.
No, the input always uses the second way. This behavior has been
changed in the past because the HTTP plug-in needs the buffer to be
reinited to parse the HTTP headers, but the documentation hasn't been
changed...
--
Christophe Massiot.
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list