aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorSimon Thelen <ffmpeg-dev@c-14.de>2017-04-08 14:21:28 +0200
committerMartin Storsjö <martin@martin.st>2018-08-14 22:30:29 +0300
commitc194b9ad6dbe65f5abd68158c4811ed84e2a2b95 (patch)
tree6700dea3ea099e4458dc63ad9e22cb9349b17a3b /libavformat
parent5d01bd181bb77e6740462095d7be4e0733a59420 (diff)
downloadffmpeg-c194b9ad6dbe65f5abd68158c4811ed84e2a2b95.tar.gz
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@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/network.c2
1 files changed, 1 insertions, 1 deletions
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;
}