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

Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Martin Storsjö 14 years ago
parent 42f9582d8d
commit 25a2ebb917
  1. 2
      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;
}

Loading…
Cancel
Save