[SCM] libav/experimental: udp: Return the actual error code on errors, instead of AVERROR(EIO)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:17:00 UTC 2013


The following commit has been merged in the experimental branch:
commit 25a2ebb917f301c26be7050e9b5dfe28fe7ade0e
Author: Martin Storsjö <martin at martin.st>
Date:   Tue Oct 5 14:09:30 2010 +0000

    udp: Return the actual error code on errors, instead of AVERROR(EIO)
    
    Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 83e8b37..01f441b 100644
--- a/libavformat/udp.c
+++ b/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;
         }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list