[FFmpeg-devel] [PATCH 1/3] Non-blocking protocols: flag and documentation

Luca Barbato lu_zero
Sun Feb 13 21:24:57 CET 2011

On 02/06/2011 09:23 AM, Nicolas George wrote:
> As UDP is packet-based,
> url_read will read one single packet; in fact, calling url_read_complete on
> a packet-based protocol would probably be wrong.

Datagram and Seqpacket protocols should not use it...

> But this raises disturbing questions: stream-based protocols and
> packet-based protocols behave in a very different manner with regard to
> reads, especially partial reads. It certainly needs more thought, and then
> at least documentation.

url_read_complete is quite simple (dumb?) and just iterates till it gets
enough data or bails out, some protocols might not fit that well within
this interface (e.g. my tries with sctp would break horribly once I
start using more than one streams per connection)



Luca Barbato

More information about the ffmpeg-devel mailing list