[FFmpeg-devel] [PATCH] Move url_readbuf() to common functions

Michael Niedermayer michaelni
Wed Jun 3 17:44:13 CEST 2009


On Tue, Jun 02, 2009 at 06:44:55PM +0300, Kostya wrote:
> Reason: read on network connections may retrieve less bytes than needed
> and we need to call reading function several times until required amount
> of data is read. libavformat/rtsp.c contains such function which I
> propose to move to common place (I use in my RTMP demuxer).

a demuxer or protocol should return with EAGAIN instead of blocking
if AVFMT_FLAG_NONBLOCK is set.

that said there is nothing network specific in this and thus network
does not belong in the function name
a reasonable name could be url_read_complete()

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090603/d2970558/attachment.pgp>



More information about the ffmpeg-devel mailing list