Commit 25a2ebb9 authored by Martin Storsjö's avatar Martin Storsjö

udp: Return the actual error code on errors, instead of AVERROR(EIO)

Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 42f9582d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment