[FFmpeg-devel] [RFC] url_write()
Måns Rullgård
mans
Thu Sep 30 20:56:27 CEST 2010
Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
> On Thu, Sep 30, 2010 at 01:20:33PM +0200, Michael Niedermayer wrote:
>> What do users of url_write() prefer
>> should we always call it in a loop in the url_write() wraper or
>> should all uses be fixed and a url_write_complete() be added similar to
>> url_read()
>> ?
>
> A separate url_write_complete IMO is useless. The big difference
> compared to reading is that if latency is an issue in the write
> function, it is possible to just buffer the data. Thus I think
> there is no point in a write function that does incomplete writes.
How are you going to ensure the write completes? Spinning until
something accepts the write is not a good idea, nor is sleeping some
arbitrary amount of time between each attempt.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list