[FFmpeg-devel] [PATCH 5/5] udp: return the error code instead of generic EIO.

Nicolas George nicolas.george at normalesup.org
Thu Mar 15 13:46:48 CET 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavformat/udp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 902e8df..5ab14f2 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -345,7 +345,7 @@ static void *circular_buffer_task( void *_URLContext)
         pthread_mutex_lock(&s->mutex);
         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;
-- 
1.7.9.1



More information about the ffmpeg-devel mailing list