diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-03-15 13:42:34 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-03-22 17:36:23 +0100 |
commit | e1838835aa18fc2a9f61217fdd5a657611886dcd (patch) | |
tree | 812954509f0fd958ad97bfd6bb23ad7f19c3389b /libavformat/udp.c | |
parent | 5deb5ccbbb556c4a15f3c7494f00de2963d0aba6 (diff) | |
download | ffmpeg-e1838835aa18fc2a9f61217fdd5a657611886dcd.tar.gz |
udp: return the error code instead of generic EIO.
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 4a6cee2d29..5ffe6d1d13 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -342,7 +342,7 @@ static void *circular_buffer_task( void *_URLContext) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_cancelstate); if (len < 0) { if (ff_neterrno() != AVERROR(EAGAIN) && ff_neterrno() != AVERROR(EINTR)) { - s->circular_buffer_error = AVERROR(EIO); + s->circular_buffer_error = ff_neterrno(); goto end; } continue; |