[FFmpeg-cvslog] r25350 - trunk/libavformat/udp.c

mstorsjo subversion
Tue Oct 5 16:09:30 CEST 2010


Author: mstorsjo
Date: Tue Oct  5 16:09:30 2010
New Revision: 25350

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

Modified:
   trunk/libavformat/udp.c

Modified: trunk/libavformat/udp.c
==============================================================================
--- trunk/libavformat/udp.c	Tue Oct  5 16:04:46 2010	(r25349)
+++ trunk/libavformat/udp.c	Tue Oct  5 16:09:30 2010	(r25350)
@@ -469,7 +469,7 @@ static int udp_write(URLContext *h, cons
         if (ret < 0) {
             if (ff_neterrno() != FF_NETERROR(EINTR) &&
                 ff_neterrno() != FF_NETERROR(EAGAIN))
-                return AVERROR(EIO);
+                return ff_neterrno();
         } else {
             break;
         }



More information about the ffmpeg-cvslog mailing list