[FFmpeg-devel] Behaviour of url_read_complete
Michael Niedermayer
michaelni
Fri Jan 22 21:23:25 CET 2010
On Fri, Jan 22, 2010 at 09:14:36PM +0100, Reimar D?ffinger wrote:
> On Fri, Jan 22, 2010 at 07:33:23PM +0100, Reimar D?ffinger wrote:
> > Hello,
> > I am a bit unsure about the purpose of url_read_complete.
> > However I would find it more convenient if its behaviour was as
> > with patch below.
> > What are your opinions?
> > The users of it in FFmpeg I saw would still work with that change.
> > Index: avio.c
> > ===================================================================
> > --- avio.c (revision 21107)
> > +++ avio.c (working copy)
> > @@ -156,8 +156,8 @@
> > len = 0;
> > while (len < size) {
> > ret = url_read(h, buf+len, size-len);
> > - if (ret < 1)
> > - return ret;
> > + if (ret < 1 && ret != AVERROR(EAGAIN))
> > + return ret < 0 ? ret : len;
> > len += ret;
> > }
>
> The EAGAIN handling is obviously wrong, but I hope you get the idea I had in mind.
if you think ignoring EAGAIN is what most users would want then
iam not opposed
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- 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/20100122/e6a88546/attachment.pgp>
More information about the ffmpeg-devel
mailing list