libavformat: Remove FF_NETERRNO()
authorMartin Storsjö <martin@martin.st>
Sat, 19 Feb 2011 18:14:11 +0000 (19:14 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Feb 2011 17:22:03 +0000 (18:22 +0100)
commitc24a40349693e50aa81ef68a4a522503ca504d50
tree155a362ee2fcc37441f2b96981b9fa25a3892b20
parent8e35f5d4fad523c1a1f0a4d9e4b74e7f1c5b990d
libavformat: Remove FF_NETERRNO()

Map EAGAIN and EINTR from ff_neterrno to the normal AVERROR()
error codes. Provide fallback definitions of other errno.h network
errors, mapping them to the corresponding winsock errors.

This eases catching these error codes in common code, without having
to distinguish between FF_NETERRNO(EAGAIN) and AVERROR(EAGAIN).

This fixes roundup issue 2614, unbreaking blocking network IO on
windows.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 28c4741a6617a4c1d2490cb13fc70ae4c9c472da)
ffserver.c
libavformat/network.h
libavformat/rtpproto.c
libavformat/rtsp.c
libavformat/rtspdec.c
libavformat/sapenc.c
libavformat/tcp.c
libavformat/udp.c