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>
This commit is contained in:
Simon Thelen 2017-04-08 14:21:28 +02:00 committed by Martin Storsjö
parent 5d01bd181b
commit c194b9ad6d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}