From 25a2ebb917f301c26be7050e9b5dfe28fe7ade0e Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 5 Oct 2010 14:09:30 +0000 Subject: udp: Return the actual error code on errors, instead of AVERROR(EIO) Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/udp.c b/libavformat/udp.c index 83e8b379eb..01f441b711 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -469,7 +469,7 @@ static int udp_write(URLContext *h, const uint8_t *buf, int size) if (ret < 0) { if (ff_neterrno() != FF_NETERROR(EINTR) && ff_neterrno() != FF_NETERROR(EAGAIN)) - return AVERROR(EIO); + return ff_neterrno(); } else { break; } -- cgit v1.2.3