aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-05 14:09:30 +0000
committerMartin Storsjö <martin@martin.st>2010-10-05 14:09:30 +0000
commit25a2ebb917f301c26be7050e9b5dfe28fe7ade0e (patch)
tree7ee646fb3aebdc12cdf80647774042b3d2690a0c /libavformat/udp.c
parent42f9582d8da0176130993f02be908bec348ef3e4 (diff)
downloadffmpeg-25a2ebb917f301c26be7050e9b5dfe28fe7ade0e.tar.gz
udp: Return the actual error code on errors, instead of AVERROR(EIO)
Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 1 insertions, 1 deletions
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;
}