[FFmpeg-cvslog] network: Use ff_neterrno instead of AVERROR(errno) for poll errors

Simon Thelen git at videolan.org
Tue Sep 11 19:33:28 EEST 2018


ffmpeg | branch: master | Simon Thelen <ffmpeg-dev at c-14.de> | Sat Apr  8 14:21:28 2017 +0200| [c194b9ad6dbe65f5abd68158c4811ed84e2a2b95] | committer: Martin Storsjö

network: Use ff_neterrno instead of AVERROR(errno) for poll errors

This makes sure to pick up the actual error codes on windows.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/network.c b/libavformat/network.c
index 86d79553f7..1e02668ecf 100644
--- a/libavformat/network.c
+++ b/libavformat/network.c
@@ -138,7 +138,7 @@ static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout,
     if (!ret)
         return AVERROR(ETIMEDOUT);
     if (ret < 0)
-        return AVERROR(errno);
+        return ff_neterrno();
     return ret;
 }
 



More information about the ffmpeg-cvslog mailing list