[FFmpeg-cvslog] udp: return the error code instead of generic EIO.

Nicolas George git at videolan.org
Thu Mar 22 18:40:46 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Mar 15 13:42:34 2012 +0100| [e1838835aa18fc2a9f61217fdd5a657611886dcd] | committer: Nicolas George

udp: return the error code instead of generic EIO.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1838835aa18fc2a9f61217fdd5a657611886dcd
---

 libavformat/udp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 4a6cee2..5ffe6d1 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;



More information about the ffmpeg-cvslog mailing list