From patchwork Mon Aug 13 19:30:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] network: Use ff_neterrno instead of AVERROR(errno) for poll errors X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 64326 Message-Id: <20180813193015.15253-2-martin@martin.st> To: libav-devel@libav.org Date: Mon, 13 Aug 2018 22:30:14 +0300 From: =?utf-8?q?Martin_Storsj=C3=B6?= List-Id: libav development From: Simon Thelen This makes sure to pick up the actual error codes on windows. --- 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; }