Browse Source

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>
tags/n4.1
Simon Thelen Martin Storsjö 8 years ago
parent
commit
c194b9ad6d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/network.c

+ 1
- 1
libavformat/network.c View File

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




Loading…
Cancel
Save