Commit c194b9ad authored by Simon Thelen's avatar Simon Thelen Committed by 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: 's avatarMartin Storsjö <martin@martin.st>
parent 5d01bd18
...@@ -138,7 +138,7 @@ static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout, ...@@ -138,7 +138,7 @@ static int ff_poll_interrupt(struct pollfd *p, nfds_t nfds, int timeout,
if (!ret) if (!ret)
return AVERROR(ETIMEDOUT); return AVERROR(ETIMEDOUT);
if (ret < 0) if (ret < 0)
return AVERROR(errno); return ff_neterrno();
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment