[FFmpeg-devel] [PATCH] avio: Check for FF_NETERROR(EAGAIN) in retry_transfer_wrapper

Martin Storsjö martin
Tue Feb 22 14:06:07 CET 2011


On Tue, 22 Feb 2011, Ronald S. Bultje wrote:

> On Tue, Feb 22, 2011 at 3:15 AM, Martin Storsj? <martin at martin.st> wrote:
> > On Mon, 21 Feb 2011, Nicolas George wrote:
> >
> >> Le tridi 3 vent?se, an CCXIX, Ronald S. Bultje a ?crit?:
> >> > Can we map them to self-defined error codes on Windows? Made-up
> >> > values, is what I mean.
> >>
> >> What about using the same values as currently, on a case-by-case basis:
> >>
> >> #ifndef ECONNREFUSED
> >> #define ECONNREFUSED WSAECONNREFUSED
> >> #endif
> >>
> >> ?
> >
> > That might be a good idea, but I'm not totally convinced. Do we want this
> > in libavutil/error.h, or internally within lavf somewhere?
> 
> Internally, for now at least, definitely. I realize that error
> reporting will be an issue to calling applications, but we'll have to
> live with that. Let's be honest, half of our functions return simply
> -1 anyway.

Ok, new patch attached that achieves this, getting rid of FF_NETERRNO() 
completely.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-Remove-FF_NETERRNO.patch
Type: text/x-diff
Size: 13041 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110222/c673b332/attachment.patch>



More information about the ffmpeg-devel mailing list